Sub Forms (1 Viewer)

Dave Hair

New member
Local time
Today, 02:15
Joined
Apr 28, 2000
Messages
6
VBA does not see my subforms. It does see my forms. Any clues??
 

Robert Dunstan

Mr Data
Local time
Today, 02:15
Joined
Jun 22, 2000
Messages
291
Dave your post is a little vague so I'll give you a general answer

If you try to reference subforms form your main form in VBA the use the syntax -

[Forms]![your main form name]![you subform name].Form

or

Me![your subforms name].Form

This will allow you to make changes to subform properties i.e AllowEdits, Enabled etc

e.g Me![you subform name].Form.Visible = True

Are you getting any VBA error messages?
 

Dave Hair

New member
Local time
Today, 02:15
Joined
Apr 28, 2000
Messages
6
Thanks. I'll try some of the syntx you provided. I get those weird message like it just doesn't know the subform exists.
 

Users who are viewing this thread

Top Bottom