By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,050 Members | 1,564 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,050 IT Pros & Developers. It's quick & easy.

remove microsoft access class objects

P: 1
i have created a form name MainForm....It was coding in VBA.....the problem is i dont want to used the mainform and want to remove it from the VBA scripting(Form_MainForm)...So how i want to remove the form???
Jan 7 '08 #1
Share this Question
Share on Google+
3 Replies


Expert 100+
P: 374
Can you post the Code that you're speaking of. Your explaination was a bit unclear.

Thanks,

Joe P.
Jan 7 '08 #2

Megalog
Expert 100+
P: 378
i have created a form name MainForm....It was coding in VBA.....the problem is i dont want to used the mainform and want to remove it from the VBA scripting(Form_MainForm)...So how i want to remove the form???
This isnt very clear...

You want to remove the visible form, but keep the VBA code you wrote for it? Please reword your question.
Jan 7 '08 #3

MMcCarthy
Expert Mod 10K+
P: 14,534
As PianoMan and Megalog said you haven't been very clear in your question.

If you just want to delete a form then deleting the form object will also delete the code attached to the form. If it doesn't then you have a corruption problem.

If you just want to delete the code without deleting the form then there is a property called Has Module under the Other tab in the Form properties. If you set the value of this to No then the code will be deleted.
Jan 8 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.