button to open subform: how to?

J

Jerry Crosby

What would the coding be on a command button that when pressed would open a
subform? There will already be space "reserved" on the main form for the
subform, I just don't want it to show until/unless the user wants it.

I know I could accomplish what I need to do by using a separate form, but
I'm curious how this might be done.

Thanks.

Jerry
 
C

Chris

in theOnClick event, set the SourceObject property to whatever form youwant
to open, and leave it blank before that. You might also need to check the
link master and child fields of your subform

HTH

Chris
 
Top