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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running a macro from a query

Status
Not open for further replies.

HEMASUR

Technical User
Jun 3, 2005
28
US
Is it possible to run a macro on closing of a query.
I have an append query, on close I need to run an update query.
Thanking you.

Hema
 
Thank you!
Was hoping to make life a little bit easier.......
 
HEMASUR,

Perhaps I am misunderstanding the question... but several queries can be tied to a single macro. If the update query runs immediately following the append query, create a new macro, with the action "OpenQuery" tied to your Append Query then on the second line of the macro, do another "OpenQuery" action tied to your Update Query.

I usually put a "MsgBox" Action at the end with a "Job Done" message to notify the macro has finished running.

Hope this helps.

Mike
___________________________
There Are 10 Types of People,
Those Who Can Read Binary...
And Those Who Can't.
 
Thanks Mike,
That's the way I have it now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top