PC Review


Reply
Thread Tools Rate Thread

Capture Elapsed time while query runs

 
 
=?Utf-8?B?UGx1bWRvZGdl?=
Guest
Posts: n/a
 
      23rd Mar 2006
Can anyone give any pointers how to capture the Elapsed time while a set of
query run? My background is more sql driven and I could write this into to a
table,but Ideally I'd like to just display it in a message box.
Thanks,
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      23rd Mar 2006
Depending on how precise a count you want, it can be as easy as setting a
variable to the value of Now before you start, then setting another variable
to the value of Now when you stop. Use DateDiff to figure out the elapsed
time between them.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Plumdodge" <(E-Mail Removed)> wrote in message
news:F6DA000E-75BC-4485-BF80-(E-Mail Removed)...
> Can anyone give any pointers how to capture the Elapsed time while a set
> of
> query run? My background is more sql driven and I could write this into to
> a
> table,but Ideally I'd like to just display it in a message box.
> Thanks,



 
Reply With Quote
 
TC
Guest
Posts: n/a
 
      24th Mar 2006
dim x as single
x = timer()
docmd.openquery ...
x = timer() - x
msgbox x & " seconds"

HTH,
TC (MVP Access)
http://tc2.atspace.com

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Elapsed Time returned from query Bob Microsoft Excel Misc 1 3rd Feb 2010 09:40 AM
Record time report, macro or query runs argniw@yahoo.com Microsoft Access Queries 1 9th Sep 2007 07:43 AM
Macro elapsed time bar (same as download time elapsed bar) =?Utf-8?B?a2x5c2VsbA==?= Microsoft Excel Programming 2 26th Apr 2007 04:58 PM
Query. Start date - End date = elapsed time in days and time..??? HOW? Timw Microsoft Access Queries 3 8th Nov 2006 11:35 AM
How to query elapsed time sequential history moments. Executor Microsoft Access Queries 2 9th Apr 2006 01:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:55 PM.