View Full Version : Timimg a Query


Soma_rich
05-03-2007, 08:07 AM
Is there any way to time how long a query takes to run. Without using a stop watch and watching the thing ;).

Uncle Gizmo
05-03-2007, 01:42 PM
Yes I have seen this done! There is information on the web somewhere! Try Rogers access library....

pdx_man
05-03-2007, 04:09 PM
You can use VBA.



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

Soma_rich
05-04-2007, 12:12 AM
pdx_man that perfect I really should have got that on my own! Thank you!