Results 1 to 5 of 5
  1. #1
    edm608 is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    May 2018
    Posts
    7

    No data is populated in the list box after updating MS Access 2010 to MS Access 365

    No data is populated in the list box after updating MS Access 2010 to MS Access 365. Any idea why?

    Sub Form_Current()


    Dim rs As ADODB.Recordset
    Dim strSQL As String


    If Err <> 0 Then
    GoTo Form_Current_Exit
    Else
    On Error GoTo Form_Current_Err

    strSQL = "SELECT dbo.SmallGroup.SmallGroupID, dbo.SmallGroup.TrainingDate, dbo.ModuleType.ModuleType, dbo.SmallGroup.Room, dbo.Applicant.LastName + ', ' + dbo.Applicant.FirstName AS [Clinical Facilitator], Applicant_1.LastName + ', ' + Applicant_1.FirstName AS [Psychosocial Facilitator]" & _
    " FROM dbo.Applicant AS Applicant_1 RIGHT OUTER JOIN dbo.SmallGroup_Training INNER JOIN dbo.ApplicantTraining ON dbo.SmallGroup_Training.ApplicantTrainingID = dbo.ApplicantTraining.ApplicantTrainingID RIGHT OUTER JOIN dbo.SmallGroup ON dbo.SmallGroup_Training.SmallGroupID = dbo.SmallGroup.SmallGroupID LEFT OUTER JOIN dbo.Applicant ON dbo.SmallGroup.ClinicalFacilitatorID = dbo.Applicant.ApplicantID ON Applicant_1.ApplicantID = dbo.SmallGroup.PsychosocialFacilitatorID LEFT OUTER JOIN dbo.ModuleType ON dbo.SmallGroup.ModuleTypeID = dbo.ModuleType.ModuleTypeID" & _
    " WHERE ApplicantTraining.ApplicantTrainingID ='" + ApplicantTrainingID + "' AND ApplicantTraining.ApplicantID ='" + ApplicantID + "'"

    Set rs = New ADODB.Recordset
    rs.Open strSQL, Conn, adOpenKeyset, adLockOptimistic
    Set Me.Parent![lstSmallGroup].Recordset = rs
    Date.SelStart = 0
    End If


    Form_Current_Exit:
    Exit Sub


    Form_Current_Err:
    'MsgBox Error$
    Resume Form_Current_Exit


    End Sub

  2. #2
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,157
    Isn't this the same question as this one ? https://www.accessforums.net/showthread.php?t=71897
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    set the list box to a query.

  4. #4
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 10 Access 2016
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    Most likely data is the problem. I would look into the data that sits in the referenced fields in the join, regress that data first.

    But without data and not practicing my Psychic powers, I have nada. The code has all sorts of issues that could help you in the long run, but basicly where is the data?

  5. #5
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by Perceptus View Post
    Most likely data is the problem...where is the data?
    I agree. Since this is a new installation of Access...Have all Folders involved been declared as 'Trusted?'

    Linq ;0)>

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 09-22-2015, 10:19 AM
  2. Replies: 1
    Last Post: 08-09-2013, 02:23 PM
  3. Replies: 9
    Last Post: 05-07-2013, 08:37 PM
  4. Replies: 4
    Last Post: 09-19-2012, 02:07 AM
  5. Replies: 0
    Last Post: 07-31-2012, 12:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums