Command button to close and return to original form

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.
 
T

Tammy S.

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.
 
Joined
Feb 15, 2010
Messages
3
Reaction score
0
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
 

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

Similar Threads


Top