I have got the following lookup on my form:
to find the pallet quantity of a product for a specific supplier, but every time I run it, it comes up with the following error -
"Run-time error '3075':
Syntax error (missing operator0 in query expression '[STOCK CODE]=112204CBC And [SUPPLIER]=HAREUR'. "
Any ideas why??
Code:
Me.PALLET_QUANTITY = DLookup("[PALLET QTY]", "tblSupplierPalletQty", "[STOCK CODE]=" & Forms![ENTER PURCHASE ORDER]![PRODUCT CODE] & " And [SUPPLIER]=" & Forms![ENTER PURCHASE ORDER]![ACC NO] & "")
to find the pallet quantity of a product for a specific supplier, but every time I run it, it comes up with the following error -
"Run-time error '3075':
Syntax error (missing operator0 in query expression '[STOCK CODE]=112204CBC And [SUPPLIER]=HAREUR'. "
Any ideas why??