add time to a field - MINUTES

G

Guest

the DateAdd function works well for adding hours and days, but how would I
add, say 10 minutes to a time based data field?
 
F

fredg

the DateAdd function works well for adding hours and days, but how would I
add, say 10 minutes to a time based data field?

NewTime:DateAdd("n",10,[DateTimeField])
 
G

Guest

thanks a million Fred...I'll try it....wonder why nothing the Help files in
Access about the use of "n"...perhaps I just missed it or it was too obvious
:)
eck

fredg said:
the DateAdd function works well for adding hours and days, but how would I
add, say 10 minutes to a time based data field?

NewTime:DateAdd("n",10,[DateTimeField])
 
F

fredg

thanks a million Fred...I'll try it....wonder why nothing the Help files in
Access about the use of "n"...perhaps I just missed it or it was too obvious
:)
eck

fredg said:
the DateAdd function works well for adding hours and days, but how would I
add, say 10 minutes to a time based data field?

NewTime:DateAdd("n",10,[DateTimeField])

Did you look in VBA help?
........
The interval argument has these settings:

Setting Description
yyyy Year
q Quarter
m Month
y Day of year
d Day
w Weekday
ww Week
h Hour
n Minute
s Second
 

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

Top