Command button to close and return to original form

  • Thread starter Thread starter Tammy S.
  • Start date Start date
T

Tammy S.

I have a subform with a command button that will return the user to the main
form. However, the subform remains open. I'd like the command button to
also close the subform on click. Can anyone help me with the code? Thank
you.
 
F2 opens from F1. F2 has a command button that returns to F1. I'd like F2
to also close when that command button is clicked.
 
just make the command button on the sub form Form2 close itself however your doing that is fine embedded macro?? and in form 2's VBA code put
Code:
 Private Sub Form_Close()
   DoCmd.OpenForm "YourF1formNameHere"
   End Sub
 
Back
Top