473,385 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Macro that shows Start and Stop times of queries

I know there is away to in a macro show the start and stop times of the actions/queries that run in a macro.

Could someone please remind me how this is down again?

Thanks for your help
TCB
Feb 28 '11 #1
3 2208
pod
298 100+
Expand|Select|Wrap|Line Numbers
  1. starttime = now
  2.  
  3. ' the beginning of the macro 
  4. ...
  5. ...
  6. ...
  7. ...
  8. 'end of the macro
  9. endtime = now
  10.  
  11. msgbox "start time " & starttime & vbcrlf & "end time " & endtime  
  12.  
Mar 1 '11 #2
Thanks POD, what would i select for the action in my macro. I tried typing just "starttime = now" but it wouldnt let me.

Thanks again for your help
TCB
Mar 1 '11 #3
pod
298 100+
I am not certain where you are trying to write this.... there are probably more than one way to do what you want.

The way I do it, is in the VBA editor: in there you can write the code in Modules or directly behind the Form in an Event Procedure of the Form or any Form Element such as "OnLoad", OnClick...

If this is new to you, I suggest read up on this. A keyboard shortcut to display the VBA Editor for Access or Excel for that matter is Alt-F11


... does that help you in any way?
Mar 1 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Murali | last post by:
Hi All, How to control(Start / Stop) a "Windows Service" (written in C#) from a windows application(.exe). Please send any URL/Solution which will guide me to solve this issue. Thanks in...
4
by: vickaiser1 | last post by:
I am creating a setup project for an application and need to edit the Metabase.xml file during setup. Does anyone know of a way to stop and then restart services programatically before and after I...
3
by: SenthilVel | last post by:
Hi All i do need to control my windows services using aspx pages. I used the System.ServiceProcess.ServiceController namespace .... this is working fine when i run my code in a windows...
0
by: martin | last post by:
Hi, I have a website on my local development machine that has a page where a small number of services (that I have wrote myself) can be either started or stopped. The website uses forms...
3
by: Tom | last post by:
When using system.timers.timer, which should one use to start/stop the timer? Start/Stop, or Enabled=True/False? If what I read is true, both really do the same thing, so I don't know if there is...
2
by: C.C. \(aka Me\) | last post by:
I am wondering if there is a class that can be used to install/remove services? I know that there is one for starting/stopping/etc. but not sure about actually install/remove. What I have is a C#...
1
by: schaf | last post by:
Hi all! I'm still trying to start/stop a service on a remote computer. (I promiss that's the last new post because of this problem from my side) My situation: I've an application running under...
0
by: Navin Mishra | last post by:
Hi, Is there a way to programmatically start/stop IIS App Pool remotely on a different machine ? Thanks! Navin
3
by: Goran Djuranovic | last post by:
Hi all, I have a web app running on a local PC that can start and stop windows service on a remote machine, but only when I browse to it locally. If I browse to it from my other PC and try to...
8
praclarush
by: praclarush | last post by:
Ok, I'm new to JavaScript and I'm taking a class for it the assignment in it I'm supposed to create edit a pre-made page to display a marquee that automatically scrolls for the user, as well as give...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.