Passing a Pop up refernece to a form or a report.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I created a pop up that requests a starting date and a second column for an
ending date. This data is then passed to a query and Pop up closes. The
results are sent to a form. The form has all the records specified in the
original POP up range. I need to carry that Pop up range over to the final
form. Since I close the Pop up two dates arent saved. If I leasve the pop up
it stays at the front and I can't minimize it. How do I transfer these two
dates to my final form?
 
Here are two suggestions
1 - Instead of closing the pop-up form, set its visible property tp False.
It should not interfere with the display of the other forms and you could
still reference its controls.
2 - If the pop-up form is modal, you could create a module, inwhich you
declare some global variables to take the two date values before closing the
form.

Hope This Helps
Gerald Stanley MCSD
 
In addition to the other suggestions, you could create and set properties on
the main form. This would be preferable to using global variables.

--
Michael Badnarik for President '04
Libertarian...the freedom party
www.lp.org
www.badnarik.org

"If you are in prison and your chances are 50% for execution by electric
chair, 45% for execution by lethal injection, and 5% for escape, are you
just going to vote for the chair because it is the likeliest outcome?" Vote
Libertarian and live to be free.
 
Even if the pop-up Form is modal, you still can use the method you described
in point 1.
 
Back
Top