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

Calling a query from vba code behind a button

Status
Not open for further replies.

tazbrown66

Programmer
Apr 15, 2005
2
US
Could someone please tell me how do I call/run a query using VBA coded behind a button on a form.

When the button is clicked, I want to run two append queries and then display a table that these append queries populate. Any ideas?
 
this would do it:

DoCmd.SetWarnings False
DoCmd.OpenQuery "QueryName1"
DoCmd.OpenQuery "QueryName2"
DoCmd.SetWarnings True
DoCmd.OpenTable "TableName
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top