• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

Delete a form

Hi,

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

Tx
0
sonmic
Asked:
sonmic
1 Solution
 
peter57rCommented:
If you don't know the password, should you be doing that?
0
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
"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 CoachmanCommented:
...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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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 MVP, Access and Data Platform)Commented:
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 MVP, Access and Data Platform)Commented:
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 MVP, Access and Data Platform)Commented:
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

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Tackle projects and never again get stuck behind a technical roadblock.
Join Now