Closing Choices-Code or Macro

G

Greta

Access 2002...
I have a form that jumps data entry to another form if the
control reads "FAILED". When the 2nd form is complete
data entry is sent back to the first form. Which is the
best way to close the 2nd form and return to the first
form...Macro or Code?
Personally I'd rather use code...I've got the macro down,
but am not sure what code to use.
Help?
Thanks,
Greta
 
F

Fredg

Greta,
To close any form using code:
DoCmd.Close acForm, "FormName"

or..
To close the just active form:
DoCmd.Close acForm, Me.Name
 

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