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!

Calculate in a form them execution time of a Macro

Status
Not open for further replies.

asn3068

Programmer
Feb 18, 2000
2
ES
(sorry for my english, i'm from Spain)...I need to see in a form the execution time of a macro that runs from a boton on this same form. <br>
The cicle would be:<br>
1. Click the buton<br>
2. The chronometer/field starts and the macro run<br>
3. End the macro<br>
4. The time stopped and visible in the form.<br>
<br>
Thanks for you response and for read this questions.
 
asn,<br>
Do this, in the Click event:<br>
dim stime as date, etime as date<br>
stime = now()<br>
<br>
run macro<br>
<br>
etime = now()<br>
<br>
me!elapsedtimefield = etime - stime<br>
<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top