Selasa, 28 November 2017

[MS_AccessPros] Dlookup Compile Error

 

I have the following code:


Private Sub cmbCurrentEFolder_AfterUpdate()
' Set the Class combo box to be limited by the selected Phylum
  Me.cboIndexKey01.RowSource = "SELECT tblFolders.FolderID, tblFolders.IndexKey01 FROM tblFolders " & _
     " WHERE FolderID = " & Nz(Me.cmbCurrentEFolder) & _
     " ORDER BY IndexKey01"
    
     Me.lblIndexKey01Label_ = DLookup("[IndexKey01Label]", "tblCabinets", [CabinetID] = " & Forms!cmbCurrentECabinet!CabinetID)
  

But my last line just gives me a compile error: Syntax error.


cmbCurrentECabinet is a combo box... Did I miss a a quote or something?


Thank you


Art Lorenzini

SD  

__._,_.___

Posted by: dbalorenzini@yahoo.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Posting Komentar