I want a query to return current date with starttime stamp between 1am and 4pm
Then I plan to create another query that will return current date with starttime stamp between 2pm and 10pm
I have departments that have day and and night shift so I have shiftstart date/time and shiftend date/time.
as well as different departments that need to show all on one page.
I thought I would create two queries and show them side by side. day shift on left night shift on right.
I found this code to put in my select query but it did not work. I do not know what I need to change to make this work but this is what I need.
BETWEEN DateAdd("h",-1,Date())+TimeSerial(0,0,0)) AND
DateAdd("h",1,Date()+TimeSerial(0,0,0)
My opjective is to run a report that shows
8/24/2009 current date
Day shift query.....Night shift query
All on one page like a spreadsheet.
so If I create two reports tied to two queries that give me the parameters above I should have a spreadsheet looking report?
Any better suggestions would be great.
More examples would be
8/24/2009 current date
Day shift query.....Night shift query
Dept1 Day Shift.....Dept1 Night shift
Dept2 Day Shift.....Dept2 Night shift
ETc....
I do not know how to make it show the data side by side without creating different queries and reports.
Then I plan to create another query that will return current date with starttime stamp between 2pm and 10pm
I have departments that have day and and night shift so I have shiftstart date/time and shiftend date/time.
as well as different departments that need to show all on one page.
I thought I would create two queries and show them side by side. day shift on left night shift on right.
I found this code to put in my select query but it did not work. I do not know what I need to change to make this work but this is what I need.
BETWEEN DateAdd("h",-1,Date())+TimeSerial(0,0,0)) AND
DateAdd("h",1,Date()+TimeSerial(0,0,0)
My opjective is to run a report that shows
8/24/2009 current date
Day shift query.....Night shift query
All on one page like a spreadsheet.
so If I create two reports tied to two queries that give me the parameters above I should have a spreadsheet looking report?
Any better suggestions would be great.
More examples would be
8/24/2009 current date
Day shift query.....Night shift query
Dept1 Day Shift.....Dept1 Night shift
Dept2 Day Shift.....Dept2 Night shift
ETc....
I do not know how to make it show the data side by side without creating different queries and reports.