We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Private Sub lboDates_Click() Dim lngEmployee As Long lngEmployee = DLookup("[Employee]", "[tblData]", "[Room]='" + Me.cboRoom.Column(1) + "'") 'This DLookup works fine, returns a long with the correct Employee ID Dim strEmployeeName As String strEmployeeName = DLookup("[FirstName]", "[tblEmployees]", "[ID]=" + lngEmployee) 'Here is where the error occurs. I've tried adding single quotes before and after, but that still won't do anything. MsgBox (strEmployeeName) 'This is just a test MsgBox to see if it works. I always get the error before getting to this point. End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|MS Access Docmd export to excel do not over write existing file||9||25|
|Open A Form without Loading All the Records of Its Recordsource||6||47|
|Access #Deleted data||20||45|
|Launch Outlook minimized||6||36|