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

Macro to Run a Form with parameter query, then execute next macro 1

Status
Not open for further replies.

jacquid

MIS
Nov 7, 2000
27
US
Instead of using a parameter query I used a form to gather the critera for a query.

My problem is :
Macro line 1: "OpenFrm" - The macro opens the form and a button on the form opens & executes the append query. No problem here.

Macro Line 2: "OpenQry" - should execute the next query in the sequence. This is where the problems is - the form remains open and this macro line is not executed.

How to I solve this?
 
If I understand your question correctly, you probably need to add a VB line to the end of the OnClick code:

DoCmd.Close acForm, "frmName"

This will close the form.

Let me know if this helps.

Larry De Laruelle
larry1de@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top