How to add the Timer control to the Toolbox

accesser

Registered User.
Local time
Today, 08:57
Joined
Mar 17, 2003
Messages
54
Hi

I am working on the Access 2002. I need to know how to add the timer control to the form so I can use it inside the code. It doesn't appear in the Toolbox.

PLEASE ADVISE ME.

thanks
 
create a textbox.
in your form open event

me.timerinterval=1000

in your timer event
me.TextboxName.value=Now.
 
Last edited:
But I cant add the Timer control itself to the form because I can't find it in the toolbox. How can I add the Timer control first to the form.

Thanks
 
Accesser,

You don't really add anything. Get a form in Design View, right-click to bring
up the Properties box.

Look at the Event Tab for the form's property. Set the Timer Interval to
some number of milliseconds. Then for in the OnTimer event, put:
[Event Function] and enter your code in the VBA editor.

Wayne
 
accesser said:
But I cant add the Timer control itself to the form because I can't find it in the toolbox. How can I add the Timer control first to the form.

Thanks
the timer control is more of a property than a tool ;)
 
There is no timer class in Access as there is in VB .NET, for instance. In Access a form object has a timer event which fires every "TimerInterval" milliseconds. You can then write a procedure that handles this event.
 

Users who are viewing this thread

Back
Top Bottom