VBA Form.PopUp programatically

Reference a MS Access Form.PopUp = Yes|No

Is there a way to change this via vba programmatically in a compiled (accde) version?
leeroypitreAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Fabrice LambertFabrice LambertCommented:
Hi,

I'm not sure to completly understand what you want.

You can design custom forms that act as pop-up Windows and store them in an ACCDE.
But you can't change a form (or pop-up) behavior that is already stored in an ACCDE without regenerating it (IE: update the ACCDB then save it to ACCDE).
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PatHartmanCommented:
What problem are you trying to solve?  If you want the form to be modal some times and not others, you will need to modify the .accdb to change the code to optionally use a different argument for the OpenForm method.  Then you would need to recompile the database.
0
John TsioumprisSoftware & Systems EngineerCommented:
I guess its easier to use the acDialog when you open a form...when you need the popup functionality you open it as
DoCmd.OpenForm TheNameOfForm, , , , , acDialog

Open in new window

else
DoCmd.OpenForm TheNameOfForm

Open in new window

0
PatHartmanCommented:
The answer to the question as posed is - No, you can't modify the code of a "compiled" form. The OP never clarified.  I would delete the question since we really have no idea of the actual problem the poster was trying to solve.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.