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
Join the community of 500,000 technology professionals and ask your questions.