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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I forgot how to check time elapsed (Second(time())?

Status
Not open for further replies.

steve728

Programmer
Mar 16, 2003
536
US
What code do I use to determine how long a MS Access 2000 process takes?
The following doesn't seem to be accurate:

mStart = Second(Time)

Lengthy processing code...........

mEnd = Second(time)

Msgbox " Time elapsed = " & (mEnd - mStart) / 60

Please help me.

Steve
 
Well, your approach would create problems if the process starts in one minute and ends in another. I dont work much with Access, but try just using Time:

mStart = Time

Lengthy processing code...........

mEnd = Time

Msgbox " Time elapsed = " & (mEnd - mStart) / 60


VBAjedi [swords]
 
Thank you so much for your help and speedy reply. All you guys are the greatest. You make life and our jobs much easier.

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top