Delete a form

Hi,

How can i delete a form when the vba is protected by a password.

Tx
sonmicAsked:
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.

peter57rCommented:
If you don't know the password, should you be doing that?
0
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database ArchitectCommented:
"How can i delete a form when the vba is protected by a password."
You can't unless you have the password.

mx
0
Jeffrey CoachmanMIS LiasonCommented:
...You can "Hide" the form though...

Right-click the form in the database window and select "Properties"
Check ON the "Hidden" attribute box.

Then in the Access options, (under the "View" tab), UN-check the "Hidden Objects" box.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

sonmicAuthor Commented:
I have the password. I need to delete a certain form and rename another form A or B depending a parameter.
0
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database ArchitectCommented:
So, if you have the password, what is the remaining issue now ?

mx
0
sonmicAuthor Commented:
I have a DB on several locations.
Some users want the form Product with 4 listboxes and others want the form with comboboxes.
I have 2 forms, ProductCB and ProductLB. The original is Product.
When the parameter in another form is set to CB, Product will be deleted and ProductCB is copied to Product. The same for LB. (VBA is used).
Only when i set off the VBA-password everything works fine.
I can't do it manually. It has to be done in the program.
Tx
0
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database ArchitectCommented:
Why not just keep both forms, and make one or the other Visible ....

mx
0
sonmicAuthor Commented:
The 2 forms are very large. There are 12 comboboxes or listboxes which are used to filter.
There are parmeters of the form Product used in query's and reports.
Perhasps there is no other way then to adjust the VBA.
0
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database ArchitectCommented:
Thing is, if you use the delete scenario, your VBA code is going to be come uncompiled.  I would really suggest just opening the appropriate form --- based on "When the parameter in another form is set to CB,"

mx
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
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.