I have a table "tblDocs" with the following date/time fields
WDate (Date Only) 1/16/2009
TimeIn (Time Only) 8:00 AM
EDate (Date Only) 1/16/2009
TimeOut (Time Only) 8:00 PM
StartDate (Date and Time) 1/16/2009 8:00:00 AM
EndDate (Date and Time) 1/16/2009 8:00:00 PM
In a query "qryTIMELINEGraph" I am comparing the TimeIn and TimeOut values against time periods in 24 hours like this:
Hr00,Hr0030,Hr01,Hr0130...
Hr01: IIf(#1:00:00 AM# And #1:30:00 AM# Between [TimeIn] And [TimeOut],"......"," ")
The result successfully creates a graph effect like this on a report.
8:00 AM ...................................... 8:00 PM
10:00 AM ............ 5:00 PM
My issue is that if Midnight, 00:00 is entered in TimeIn or TimeOut then the comparison in qryTIMELINEGraph fails.
I tried using StartDate and EndDate in place of TimeIn and TimeOut but that did not correct the problem. StartDate and EndDate contain the same data as WDate, TimeIn and EDate, TimeOut. I added StartDate and EndDate in an attempt to resolve the issue.
Any help correcting this issue will be appreciated.
Thank You
Accel45
WDate (Date Only) 1/16/2009
TimeIn (Time Only) 8:00 AM
EDate (Date Only) 1/16/2009
TimeOut (Time Only) 8:00 PM
StartDate (Date and Time) 1/16/2009 8:00:00 AM
EndDate (Date and Time) 1/16/2009 8:00:00 PM
In a query "qryTIMELINEGraph" I am comparing the TimeIn and TimeOut values against time periods in 24 hours like this:
Hr00,Hr0030,Hr01,Hr0130...
Hr01: IIf(#1:00:00 AM# And #1:30:00 AM# Between [TimeIn] And [TimeOut],"......"," ")
The result successfully creates a graph effect like this on a report.
8:00 AM ...................................... 8:00 PM
10:00 AM ............ 5:00 PM
My issue is that if Midnight, 00:00 is entered in TimeIn or TimeOut then the comparison in qryTIMELINEGraph fails.
I tried using StartDate and EndDate in place of TimeIn and TimeOut but that did not correct the problem. StartDate and EndDate contain the same data as WDate, TimeIn and EDate, TimeOut. I added StartDate and EndDate in an attempt to resolve the issue.
Any help correcting this issue will be appreciated.
Thank You
Accel45