Access 2000
I have a database that tracks clients by time in a waiting room. Essentially clients are seen in 3 shifts, 9am-1pm, 1pm-6pm, and 6pm-midnight. This is accomplished using 2 fields, DateI (date in using Date()) and TimeI (time in using Time())
I need to make a report that groups at 2 levels, the first level being Day of the week (Monday, Tuesday, ect..). This was easy to do using the Format$([dateI],"dddd") in the underlying query. I would then like to group on time using the 3 shifts mentioned above. I tried using "between" in the format function for time but I got a syntax error.
What would be the best way to create those 3 shift groups? Should it be done in VBA in the TimeI group header? Or is there a way in the underlying query? I don't want to limit my results in the criteria portion of the query but rather create an expression like AM, PM, Evening usinng some form of between.
Any advice would be welcomed
Thanx in advance
I have a database that tracks clients by time in a waiting room. Essentially clients are seen in 3 shifts, 9am-1pm, 1pm-6pm, and 6pm-midnight. This is accomplished using 2 fields, DateI (date in using Date()) and TimeI (time in using Time())
I need to make a report that groups at 2 levels, the first level being Day of the week (Monday, Tuesday, ect..). This was easy to do using the Format$([dateI],"dddd") in the underlying query. I would then like to group on time using the 3 shifts mentioned above. I tried using "between" in the format function for time but I got a syntax error.
What would be the best way to create those 3 shift groups? Should it be done in VBA in the TimeI group header? Or is there a way in the underlying query? I don't want to limit my results in the criteria portion of the query but rather create an expression like AM, PM, Evening usinng some form of between.
Any advice would be welcomed
Thanx in advance