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

Events for Queries?

Status
Not open for further replies.

Nick34

Technical User
Oct 16, 2003
50
US
Are there any ways to add VBA code to a query event? For instance, when I open the query, run the code.
 
You may put a VBA function in the query. Then this function runs every time you run the query.

for example,
***
select customername, FireTheEvent() from tblCustomers
***

seaport
 
Ok. I want this function, Unit130Day(), to run when I open the query. So where do I tell the query to do this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top