Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to write codes to close a particular form?

Status
Not open for further replies.

Doraemon

IS-IT--Management
Sep 12, 2003
31
HK
I have opened a form (say Form B) from the main form (say Form A).

I have writted in Form B:
Private Sub cmd_select_Click()
...
...set values to fields in Form A...
...
DoCmd.Close

End Sub

However, when the "Select" button in Form B is clicked, Form A is closed instead of Form B.

I would like to ask how should I replace "DoCmd.Close", so that Form A is closed and not Form B.

Thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top