G
Guest
Good day,
I have put the below into Module1 and get an error message "Run-Time error
'2001'"
"You canceled the previous operation". Can anybody tell me what is wrong ?
Sub test()
Dim varX As Variant
varX = DLookup("[LastName]", "tblQualityStaff", "[EmployeeID] = 1")
MsgBox varX
End Sub
I have put the below into Module1 and get an error message "Run-Time error
'2001'"
"You canceled the previous operation". Can anybody tell me what is wrong ?
Sub test()
Dim varX As Variant
varX = DLookup("[LastName]", "tblQualityStaff", "[EmployeeID] = 1")
MsgBox varX
End Sub