J Jim May 28, 2008 #1 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.
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.
K Klatuu May 28, 2008 #2 'Open Form B Docmd.OpenForm "FormB" 'Close Form A Docmd.Close acForm, Me.Name, acSaveNo
J Jim May 29, 2008 #3 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.
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.
K Klatuu May 29, 2008 #4 Where are you trying to execute this code? Try reversing the order to: Docmd.Close acForm, Me.Name, acSaveNo Docmd.OpenForm "FormB"
Where are you trying to execute this code? Try reversing the order to: Docmd.Close acForm, Me.Name, acSaveNo Docmd.OpenForm "FormB"