How to open a subform using a button?

  • Thread starter Thread starter chill
  • Start date Start date
C

chill

hi

im trying to open a subform using the "open form " button from the main form .
Is there any way to do this?

thanks
 
Hi chill,
when the form opens, the subform control (that holds the subform) can be
empty.
Your button can open the subform like this-->
Me.NameOfSubformControl.SourceObject = "NameOfSubform"

You can also have the subform already loaded and just toggle it's visible
property.

Note: Use your names for NameOfSubformControl and NameOfSubform.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
 

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

Back
Top