sub form basics

SueBK

Registered User.
Local time
Tomorrow, 05:53
Joined
Apr 2, 2009
Messages
197
I'm a little hazy about how subforms work. My specific question in this instance is about a form I haven't designed, but which I'm trying to add some code to.

I have a main form: frmGroup
The subform is called: subfRolesSubform

But when I open "frmGroup" in design view and click the sub-form it's called "tblRoles Suborm".

Why would this be? It's confusing me when I try to write my code to have the subform called something different.
 
There are two items here. One is a subform control on the mainform, the second is the form being put into that control. It sounds like they have different names in this instance. Check the properties of the subform control on the mainform, where you should see both.
 
I feel like a right proper dummy :) I opened a 'dead' database and created a form with a subform (so scared I'll "break" the real database), and realised what was going on when it asked me to name the sub-form control.

I've now re-named the subform in the real database to better reflect where it's coming from and what it actually is.

Thanks!
 
Happy to help. No need to feel like a dummy. It is definitely confusing until you realize what's going on, because it isn't readily apparent.
 

Users who are viewing this thread

Back
Top Bottom