stepdown
Registered User.
- Local time
- Today, 23:02
- Joined
- Jul 4, 2006
- Messages
- 16
Hi, I am trying to use the NZ function but I just can't seem to get it to work when it looks up two different fields, here is what I have at the moment...
As well as...
The reason behind this is I want to run the same query from both the TimeEntry and TimeQuery forms, and as you can see I need to make sure that both DateTop and StaffTop are used as criteria. I found people having similar problems here but it didn't seem to be resolved, and I have tried the different versions there. Is there a way that I can get this to work?
As always any help will be greatly appreciated
Code:
Criteria for Date:
Like NZ("[Forms]![TimeEntry]![DateTop]","[Forms]![TimeQuery]![DateTop]")
As well as...
Code:
Criteria for Staff ID:
Like NZ("[Forms]![TimeEntry]![StaffTop]","[Forms]![TimeQuery]![StaffTop]")
The reason behind this is I want to run the same query from both the TimeEntry and TimeQuery forms, and as you can see I need to make sure that both DateTop and StaffTop are used as criteria. I found people having similar problems here but it didn't seem to be resolved, and I have tried the different versions there. Is there a way that I can get this to work?
As always any help will be greatly appreciated