Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time calculation

Status
Not open for further replies.

nkamp

Programmer
Jan 19, 2004
35
0
0
NL
Hello,

I want at some stage everytime look back for half an hour like:

Datediff("s", Timvalue(Time)-Timevalue("00:30:00"), rec("par1").value)

Is there in VBA a simple function for?

thanks in advance!

Nico
 
DateAdd should suit, for example:

[tt]DateAdd("n", -30, #6:57:58#)[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top