sanders720
Programmer
I have a dLookup Statement that is not working, because it cannot evaluate null. I do not want to use Nz here, because what if my query needs a null to work?
=DLookUp("[Hours]","timecards","[Employee Number]=[txtEN] AND [Date]=[txtPS] AND [Job Number]=[txtJobNumber] AND [Order Number]=[txtOrderNumber] AND [Op Number]=Nz([txtOperationNumber],""
"
The problem is here...
[Order Number]=[txtOrderNumber]
This value could be null, and I would like to search it as if it were, otherwise if I do something like...
[Op Number]=Nz([txtOperationNumber],""
Then the value is evaluated as a space, and the data is not properly looked up.
Any thoughts, and thanks for the help!
=DLookUp("[Hours]","timecards","[Employee Number]=[txtEN] AND [Date]=[txtPS] AND [Job Number]=[txtJobNumber] AND [Order Number]=[txtOrderNumber] AND [Op Number]=Nz([txtOperationNumber],""
The problem is here...
[Order Number]=[txtOrderNumber]
This value could be null, and I would like to search it as if it were, otherwise if I do something like...
[Op Number]=Nz([txtOperationNumber],""
Then the value is evaluated as a space, and the data is not properly looked up.
Any thoughts, and thanks for the help!