Subtract Time

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

Guest

I have a system time on my form, I want an alert to display when this time
(system time) is less than an hour (amount giving by user) away.
 
You can use DateAdd (with a negative amount) to do date and time arithmetic.
 
Should be as simple as systemTime - formTime
Access views the numbers as Long Integers so its simple math.
 
It should be as simple as subtracting the current system time from the
time given by the user since Access views dates/times as numbers.
 

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