I am trying to subtract 12 hours from a time-date field when the payperiod does not equal 01.
in a query I have:
- Access added a PM before the second hash so it looks like this:
When I run the query I get a message box: "syntax error (missing operator) in query expression '00:00
M#,2))". I am unable to open the query to correct the error. I can cop the unaltered query from a back up database.
My question is how do I subtract the 12 hours.
Thanks
Steve
in a query I have:
Code:
work date: iif([payperiod]="01",[StartTime],[starttime]-#12:00:00#)
Code:
iif([payperiod]="01",[StartTime],[starttime]-#12:00:00 PM#)
When I run the query I get a message box: "syntax error (missing operator) in query expression '00:00
My question is how do I subtract the 12 hours.
Thanks
Steve