theKruser
Registered User.
- Local time
- Today, 17:31
- Joined
- Aug 6, 2008
- Messages
- 122
I am trying to include a statment in my query in which a date stored in a table is compared to a start and end date that will update itself (i.e. fiscal year dates). I will eventually embed it into an Iif statment to return a value if the selected date is either within or not within the given date range.
For example:
If [date] is within this fiscal year, then return blank, if not return EXPIRED.
The problem lies in defining the fiscal year with automatic update. Since FY08 runs from 1 Oct 07 to 30 Sep 08, the only way I can figure out to compare [date] is by using Between command and manually defining dates. Then every new fiscal year I have to change the query. This would not be a problem to do, but I am trying to make this as user friendly as possible to minimize user programming in the future. Any ideas???
For example:
If [date] is within this fiscal year, then return blank, if not return EXPIRED.
The problem lies in defining the fiscal year with automatic update. Since FY08 runs from 1 Oct 07 to 30 Sep 08, the only way I can figure out to compare [date] is by using Between command and manually defining dates. Then every new fiscal year I have to change the query. This would not be a problem to do, but I am trying to make this as user friendly as possible to minimize user programming in the future. Any ideas???