Every day I generate a report based on a query which uses the Now()-1 (on the DATE field) to only give me the events for the previous day only.
Example of Table:
DATE TIME EVENTID USERID SEVERITY
7/7/2002 09:05 644 MIKEYJ LOCKOUT
7/8/2002 11:06 644 JACKOJ LOCKOUT
7/9/2002 09:28 644 JONESJ LOCKOUT
7/9/2002 09:48 644 TOMMYJ LOCKOUT
I have 2 problems: the Now() -1 equates to previous day with the start time when the report is run. e.g. if report is run at 10:20 a.m. on 7/10/2002 then it erroneously omits the 2 entries for 7/9/2002.
Is there a way to make the Now() or equivalent function to start from 12:00 a.m - 11:59 pm for the previous day?
If there is no entry for that day, print the report anyway but indicate that "NO LOCKOUT ENTRIES TO SYSTEM LOG" somewhere on the report?
Any help would be greatly appreciated.
Example of Table:
DATE TIME EVENTID USERID SEVERITY
7/7/2002 09:05 644 MIKEYJ LOCKOUT
7/8/2002 11:06 644 JACKOJ LOCKOUT
7/9/2002 09:28 644 JONESJ LOCKOUT
7/9/2002 09:48 644 TOMMYJ LOCKOUT
I have 2 problems: the Now() -1 equates to previous day with the start time when the report is run. e.g. if report is run at 10:20 a.m. on 7/10/2002 then it erroneously omits the 2 entries for 7/9/2002.
Is there a way to make the Now() or equivalent function to start from 12:00 a.m - 11:59 pm for the previous day?
If there is no entry for that day, print the report anyway but indicate that "NO LOCKOUT ENTRIES TO SYSTEM LOG" somewhere on the report?
Any help would be greatly appreciated.