I have tried everything but to no avail...Do you mean the following?
DoCmd.Close acForm, "RostYA3"
DoCmd.Close acForm, "RostYA2"
DoCmd.Close acForm, "RostYA"
DoCmd.OpenForm "FormB"
DoCmd.Close acForm, "RostYA4"
Still gives me the same error...
> docmd.close
> docmd.openform = "formname"
[quoted text clipped - 11 lines]
> > form and return to the original one - "FormB"
> > Please Help :(
albycindy - 28 Feb 2006 15:27 GMT
Hi Justin
I'm a relative novice but thought I'd put in my 2c worth!
Have you tried putting the DoCmd.Open line of your code after all the close
ones? eg,
DoCmd.Close acForm, "RostYA3"
DoCmd.Close acForm, "RostYA2"
DoCmd.Close acForm, "RostYA"
DoCmd.Close acForm, "RostYA4"
DoCmd.OpenForm "FormB", acNormal, etc...
If you need it to open to the record you had open last, I know there is some
way to do it but not off the top of my head. There's heaps of info on that in
this forum if you search.
HTH
Cindy
> I have tried everything but to no avail...Do you mean the following?
>
[quoted text clipped - 23 lines]
> > > form and return to the original one - "FormB"
> > > Please Help :(