Start Free Trial
Come for the solution, stay for everything else.
Start Free Trial
Order of events
Hi, im currently havn difficulty with the order of events with my VBA Code.
Basically when a user clicks on a command button it should open up a form and subsequently print a report. The data for the report is based upon values on the pop up form.
The problem I am having is that the report keeps opening up prior to the form even though I have the open form command prior to open report. This is causing blank data in the report.
Can anyone put me in the right direction - Thanks
8/22/2022 - Mon
Can you explain the point of opening the form?
If it is a bound form then there must be some other way of telling the report where the data is?
Jim Dettman (EE MVE)
You need to do one of two things:
1. Make your popup form modal - If you do, code execution will be suspended in your calling form until the modal form is closed or hidden.
2. Open the report from the popup form.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
ASKER CERTIFIED SOLUTION
Log in or sign up to see answer
Become an EE member today
7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Plans and Pricing
Certified Expert Program
© 1996-2022 Experts Exchange, LLC. All rights reserved. Covered by US Patent