Closing Choices-Code or Macro

  • Thread starter Thread starter Greta
  • Start date Start date
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
 
Greta,
To close any form using code:
DoCmd.Close acForm, "FormName"

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