Create a running clock then kick off modules

  • Thread starter Thread starter rjgst3
  • Start date Start date
R

rjgst3

I want to create a running clock on a form then use that clock to kick
off modules to update tables, queries, reports etc. I have all the
update modules created in VBA, all I need to do is create a running
clock with hh:mm:ss to key off of to kick off my modules. Any code
available would be great....
 
Use the Timer event of your form.

For example set the form's TimerInterval property to 1000 (Event tab of
Properties box.)

Then in the form's Timer event:
Me.[txtTime] = Now()
where txtTime is an unbound text box on your form, with its Format property
set to Medium Time or whatever you want.
 
Check Access VB Help topic "Timer Event" and "TimerInterval Property".

Sample code esixts in the Help topics.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top