Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I create a 24-hour workshift that starts at 7:30AM each day?

Status
Not open for further replies.

wrburch

Vendor
Aug 7, 2012
9
US
How do I create a 24-hour workshift that starts at 7:30AM each day? There are 3 shifts A,B,C that rotate thru the year. I have a date and time field to use in my table. Help?
 
To get the right dates, try subtracting 7.5 hours from the datetime for your calculations. Something like this:

DateAdd('n', -30, DateAdd('h', -7, {MyTable.DateTimeField}))

You would still display the correct times, but this would set things up so that the overnight shift that would be considered part of the prior day is included in the prior day's numbers.

-Dell

DecisionFirst Technologies - Six-time SAP BusinessObjects Solution Partner of the Year
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top