Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there anything like an actionlis

Status
Not open for further replies.

Biomechanoids

Programmer
Oct 18, 2002
14
US
Is there anything like an actionlistener or oncommand in VBA? My Problem is: every time a new datasheet in Access is created I want a subprocedure to run.

So from the principle the thing would work like this:


If (methodidontknow) Then GoTo Sub easyloop

Sub easyloop ()
MsgBox "New datasheet was created"


In Java there is the ActionListener method that would perform something like this.

Greetings

Thomas

 
I think what you are looking for is a trigger... and there are no triggers in access...

Not that I know of any way...

One way to do this would be to on the load of the database, open a form that is hidden...

and in the on timer event (say every 5 seconds) count the number of object type you are looking for, and if the number changes, then display the message box...

Just an idea... I don't know code to count objects, but I think if you can get that down you will be set...

Just my two cents...

--James
junior1544@jmjpc.net
Life is change. To deny change is to deny life.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top