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

interval in access macro

Status
Not open for further replies.

new2ora

Technical User
May 5, 2003
17
CA
I have a macro in Access 2002 that has 2 steps. Step1 launches an external application which creates a text file. Step2 opens that file for viewing. I want the second step to run after 60seconds of the first one being launched! Otherwise the maro opens the old file!!

Any Ideas???
 
Forget macros and do it in VB code

Dim datOpeningTime as Date
datOpeningTime = Now() + ( 1/(24*60))
Launch App
While datOpeningTime > Now()
DoEvents
Wend
Open File




'ope-that-'elps.




G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top