Directions how to activate controls on a subform (e.g. requery)

Y

yal

How do I activate controls on a subform (e.g. requery)? I checked the help
options and they were not there. I would think this is a basic concept for
help options
 
M

Marshall Barton

yal said:
How do I activate controls on a subform (e.g. requery)? I checked the help
options and they were not there. I would think this is a basic concept for
help options


What do you mean by "activate controls"?

If you mean that you want to enable a control on a subform
by using code in the main form, then it would be like this:

Me.subformcontrolname.Form.controlname.Enabled = True

Or, to requery a combo/list box:

Me.subformcontrolname.Form.controlname.Requery

Or, if you want to requery the subform's data source:

Me.subformcontrolname.Form.Requery
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top