Snowflake68
Registered User.
- Local time
- Today, 22:05
- Joined
- May 28, 2014
- Messages
- 464
I am trying to get the correct syntax for the below code.
Category Number and CatCode are both Numeric fields and LockNetPrice%Disc is a Yes/No field.
I need it to return the catcode value where the [CatCode] = [Category Number] AND where the [LockNetPrice%Disc] field = True
But when I run the query using the above line as the criteria in the Category Number field on the query it just throws up a parameter for CatCode.
Can someone help please?
Thanks
Code:
DLookUp([CatCode],"LookupCategoryFormat","[LockNetPrice%Disc]= '" & True & "' AND [CatCode]= " & [Category Number] & "")
Category Number and CatCode are both Numeric fields and LockNetPrice%Disc is a Yes/No field.
I need it to return the catcode value where the [CatCode] = [Category Number] AND where the [LockNetPrice%Disc] field = True
But when I run the query using the above line as the criteria in the Category Number field on the query it just throws up a parameter for CatCode.
Can someone help please?
Thanks