Timimg a Query

Soma_rich

Registered User.
Local time
Today, 13:03
Joined
May 2, 2007
Messages
58
Is there any way to time how long a query takes to run. Without using a stop watch and watching the thing ;).
 
Yes I have seen this done! There is information on the web somewhere! Try Rogers access library....
 
You can use VBA.

Code:
Public Sub TimeIt()
Dim StartTime, EndTime As Date

    StartTime = Now()
    DoCmd.OpenQuery "Qry_APR_Post"
    EndTime = Now()
    
    MsgBox "Seconds to run query:" & DateDiff("S", StartTime, EndTime)
    
End Sub
 
pdx_man that perfect I really should have got that on my own! Thank you!
 

Users who are viewing this thread

Back
Top Bottom