New Access Form Not Showing Up In VBE Collection of Forms

AlexB123

Board Regular
Joined
Dec 19, 2014
Messages
207
Hi all,

I am adding a new form to a pre-existing split - database. However, when I open up the VBE, I can't find it. I'm certain this is a pretty simple issue, but I can't find anything similar searching online.

Any ideas?

Thanks,
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
So you open the form and it does not snow in the FORMS collection?
but you can open it with Docmd.openform?
then who cares? Just use openform.
 
Last edited:
Upvote 0
Well, I need to add code to it for it to be of any use whatsoever.

I did create a module ...

Code:
Private Sub CheckForm()
    DoCmd.OpenForm "frmAdmin"
End Sub

It does open my form, but the frmAdmin does not show up in the forms collection. I would like to add the code I have written.
 
Upvote 0
With the form in Design view, click the view code button (gets a little wierd explaining the ribbon menus but it's basically a part of the form design tools ribbon, tools section, which is a context driven menu that shows up when you are view a form in design view).

In short, forms don't always have code modules at first.

You can also search for the HasModule properties in the form properties and set it to true.

You could also probably click on one of the form events to auto-generate a code stub for some event (like the On_Load event), which would create a module for the form automatically as well.

Private Sub CheckForm()
DoCmd.OpenForm "frmAdmin"
End Sub
note that you created a standard code module, not a code module for the form.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,720
Members
448,986
Latest member
andreguerra

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top