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!
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!