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

Action Failed when canceling a Form

Status
Not open for further replies.

swbrodie

Technical User
Joined
Mar 24, 2003
Messages
4
Location
US
Hello.

I have a macro that opens Form1. Form1's OnLoad event calls Form2. The user selects an item from a combo box on Form2 and clicks OK, the Visible property of Form2 is set to No, and Form1 loads a query based on the criteria selected on Form2. Form1's OnClose event closes Form2.

Everything works great if you select an item and click OK when Form2 loads. The problem is if you close or cancel Form2, you receive an Action Failed error for the macro that originally opened Form1.

Actually, this is the very same method that I use to enter report criteria when generating reports. It works fine with the reports, but does not work with the form. What am I missing?

Help is greatly appreciated.

Stephen
 
convert your macro to code and paste the code here. ==
Jeremy Wallace
AlphaBet City Dataworks
Affordable Development, Professionally Done

Please post in the appropriate forum with a descriptive subject; code and SQL, if referenced; and expected results. See thread181-473997 for more pointers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top