C
Conan Kelly
Hello all,
Is it possible to time long running select queries?
I was looking at creating some code to do this....something like:
1. Store current time in a time variable
2. Try to programmatically open a query ("open" meaning just like manually
opening a select query from MS Access to view data) using
"Application.CurrentDb.QueryDefs("Query3").OpenRecordset dbOpenTable".
3. Check the current time and compare it to the start time saved at the
beginning
But, I get "Run-time error '3219': Invalid operation." when I run
"...OpenRecordset dbOp...". Also, I get the feeling that the OpenRecordset
method is for opening a query in memory/the background (storing in a
Recordset object variable, not for viewing) rather than actually opening a
query to view the data).
Thanks for any help anyone can provide,
Conan Kelly
Is it possible to time long running select queries?
I was looking at creating some code to do this....something like:
1. Store current time in a time variable
2. Try to programmatically open a query ("open" meaning just like manually
opening a select query from MS Access to view data) using
"Application.CurrentDb.QueryDefs("Query3").OpenRecordset dbOpenTable".
3. Check the current time and compare it to the start time saved at the
beginning
But, I get "Run-time error '3219': Invalid operation." when I run
"...OpenRecordset dbOp...". Also, I get the feeling that the OpenRecordset
method is for opening a query in memory/the background (storing in a
Recordset object variable, not for viewing) rather than actually opening a
query to view the data).
Thanks for any help anyone can provide,
Conan Kelly