add time to a field - MINUTES

E

Eck

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])
 
E

Eck

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
 
Top