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

Set timer event

Status
Not open for further replies.

amillia

Programmer
Nov 14, 2001
124
US
I need to use the timer event when I run a macro which opens two queries. I need to find out how long it takes to run the macro. How do I do this?
 
In VBA:
tStart = Now
' do your stuff here
tEnd = Now
MsgBox "Elapsed time = " & Format(tEnd - tStart, "h:nn:ss")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top