DateAdd

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

is there a DateSubtract too? I need to subtract hours from a time field.
 
Sash said:
is there a DateSubtract too? I need to subtract hours from a time field.

You can use the DateAdd function to subtract dates, too. Just use a
negative of the hours you want to subtract.
Example: To subtract 2 hours from 5pm do this

? DateAdd("h", -2, #5:00pm#)
3:00:00 PM

Tom Lake
 
Sash,

Use the DateAdd function, with a -ve amount entered for the 'number'
argument, for example...
DateAdd("h",-3,[YourField])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top