DoCmd.Close acForm, Me.Name
The above line error works in one part of my code but NOT in another.
The intention of the code is simple to close the current form.
It is part of my overall error handling process which I am working on.
1. click on form frmWeeks.
2. Then make and entry in the "weeksdescription" contol.
3. Then click exit.
4. There will be a error because of division by zero. (ignore this).
5. Then there will be an error on the line "DoCmd.Close acForm, Me.Name"
Why am I getting an error on this line. (It is fine elsewhere).