Closing a Form

  • Thread starter Thread starter Jim
  • Start date Start date
J

Jim

I am creating an application where I want Form A to call Form B, then have
Form A close. Does anyone know how to do this? Thank you.
 
When I tried this, I received an error 2585 (This action can't be carried out
while processing a form or report event). Any other ideas? Thanks.
 
Where are you trying to execute this code?
Try reversing the order to:

Docmd.Close acForm, Me.Name, acSaveNo
Docmd.OpenForm "FormB"
 
Back
Top