hhusted,
Place the subform on the main form in design view and set its visible
property to No (the subform control, not the subform).
To see the difference between a subform control and a subform
--create a new form in design view
--on the toolbox, turn off the wizard
--select the subform tool
--use the tool to put a subform control on the form
--you will see a white rectangle
--the white rectangle is the subform control
--to put a subform in the subform control
--select the subform control
--open the properties dialog
--select the data tab
--click the drop down for Source Object
--choose any other form from the drop down list
--you can now see a form inside the subform control
To put code in an event, open the form in design view.
--select the control you want the procedure to run from (the button)
--open the properties dialog
--select the Events tab.
--select the event you want to use
--in this case, the On Click event
--click on the small command button to the right with the 3
dots.
--when the dialog opens, select Event Procedure.
--the VB editor will then open with the cursor positioned in the event sub.
--enter the code there
Jeanette Cunningham