Hi,
I'm struggling to use DlookUp properly. I've got some VB
When I run this I get the error message
I've also tried
But that gives me "Invalid use of Null"
I've used the Dlookup before in many places but here something is stopping it working - any clues ??
Thanks
I'm struggling to use DlookUp properly. I've got some VB
Code:
Dim Flag As Integer
StField = "AMC 5".
Flag = DLookup("[ProcID]", "tbl_Processes", "[ProcRef] =" & stField)
If I try same thing but with stField = "AMC5" I get the messageRuntime error 3075
Syntax Error (missing operator) in query expression '[ProcRef] = AMC 5'
Runtime error 2471
The expression you entered as a query parameter produced this error 'This object doesn't contain the Automation object'AMC5'
I've also tried
Code:
Flag = DLookup("[ProcID]", "tbl_Processes", "[ProcRef] = 'stField'")
I've used the Dlookup before in many places but here something is stopping it working - any clues ??
Thanks