Cosmos75
Registered User.
- Local time
- Yesterday, 18:40
- Joined
- Apr 22, 2002
- Messages
- 1,281
I have a query with these fields
HireDate: From tbldate - Date (Short)
MonthHire: Format([HireDate], “m”)
2Day: Date()
Month2Day: Format([2Day],”m”)
DiffMonth:[Month2Day]-[MonthHire]
I want the query to prompt the use to enter 2Day instead of having 2Day be equal to Date(). How do I do that?
I’ve tried 2Day:[Enter Date], and it returns 2Day and Month2Day correctly but any formulas based on Month2Day won’t work?
(There's more to this query but I didn't see the need to list everything else)
I guess I am asking how do I declare a constant (that the user enters) to be used in a query without VBA?? Is that what I am trying to do??
HireDate: From tbldate - Date (Short)
MonthHire: Format([HireDate], “m”)
2Day: Date()
Month2Day: Format([2Day],”m”)
DiffMonth:[Month2Day]-[MonthHire]
I want the query to prompt the use to enter 2Day instead of having 2Day be equal to Date(). How do I do that?
I’ve tried 2Day:[Enter Date], and it returns 2Day and Month2Day correctly but any formulas based on Month2Day won’t work?

(There's more to this query but I didn't see the need to list everything else)
I guess I am asking how do I declare a constant (that the user enters) to be used in a query without VBA?? Is that what I am trying to do??
