hi.
I am using Access VBA through Access 2002
1. I read a value through form XX by Text Box.
2. then (through Lost focus Event) I compared the value by using a condition which has writen by access vba code.
3. at right condition I called the close command DoCmd.Close acForm, "XX" to close the form.
4. But Error message was occured tell me that this command will not be executed through an Event.
My Question is : Why?!! and what is the correct way to close the form through an Event and without a Close Boton.
thanks.
Start Free Trial