The "Cancel = True" statment didn't work. No errors, but the form is still
open. By the way, if I use the "DoCmd.Close acForm, Me.Name" statement, I get
the following error ...
"This action can't be carried out while processing a form or report event"
I don't know if this helps. Thanks!
-Howard
> You could put this code in your form's Open event:
> Call NameOfFunction
[quoted text clipped - 23 lines]
> > Thanks!
> > -Howard
PC Datasheet - 05 Jan 2005 18:59 GMT
The "Cancel = True" statment will work if coded correctly! Post all your
code in the form's open event.
Where are you using "DoCmd.Close acForm, Me.Name" ? Post all your code there
too.
Steve
PC Datasheet
> The "Cancel = True" statment didn't work. No errors, but the form is still
> open. By the way, if I use the "DoCmd.Close acForm, Me.Name" statement, I get
[quoted text clipped - 33 lines]
> > > Thanks!
> > > -Howard