Adding time to a time field

davesmith202

Employee of Access World
Local time
Today, 08:59
Joined
Jul 20, 2001
Messages
522
I have a time field MyTime where I want to add 45 minutes. I want to then store the result in a memo field.

I've tried this:

MyMemoField=[MyTime]+45

It doesn't work!!

Any ideas?

Thanks,

Dave
 
That was really useful. Thanks. :)
 
date/times are represented by a whole number of days, and a fraction of a full day.

so, adding +45 actually adds 45 days.

45 minutes is actually 45/60 (minutes) of 1/24 (hours) of a day, or 1/32 of a full day (hope that makes sense) which is approximately 0.031 - so that is what you needed to add.

the dateadd function does all these calculations for you in an easier way.
 
Last edited:

Users who are viewing this thread

Back
Top Bottom