I want to attach some VBA code to a button that opens a form in PopUp mode, but I want the form's default PopUp property set to No. The reason is that I want to use the same form for entering data from 2 different areas of the database, and I want it to be a popup in one location, but not in another.
The reason is that I use the form to enter address information, and that information is then transferred to an envelope report once a "preview" button is clicked on the form. When I want the form in popup mode, the address information is auto-populated from another form, so no data entry is needed.
But I also want to be able to enter new addresses into the envelope entry form. But If I do this with the entry form in popup mode, the form stays in front of the envelope report when it is viewed. And if I close the entry form when the report is opened, I would have to re-enter the address information again if, say, I wanted to print a second envelope after closing the form.
Hopefully that makes sense.
The reason is that I use the form to enter address information, and that information is then transferred to an envelope report once a "preview" button is clicked on the form. When I want the form in popup mode, the address information is auto-populated from another form, so no data entry is needed.
But I also want to be able to enter new addresses into the envelope entry form. But If I do this with the entry form in popup mode, the form stays in front of the envelope report when it is viewed. And if I close the entry form when the report is opened, I would have to re-enter the address information again if, say, I wanted to print a second envelope after closing the form.
Hopefully that makes sense.