Help! "On Close" command not functioning!

shieriel

Registered User.
Local time
Today, 16:05
Joined
Feb 25, 2010
Messages
116
I am working on my database and they are working fine until all of a sudden my "on close" function on my form doesnt work! I got an error as attached here. Please help what are the possible error on my db.
 

Attachments

  • form error.JPG
    form error.JPG
    56.7 KB · Views: 107
What do you have in your On Close event and did you put it in the VBA window and NOT in the event properties dialog?
 
What do you have in your On Close event and did you put it in the VBA window and NOT in the event properties dialog?

This is my code under "On Close" event in the vba window and it is functioning ok until just now when i close the form that error appears.:(

Private Sub Form_Close()
DoCmd.OpenForm "Switchboard1"
End Sub
 
Can you post a screenshot of your form, the one closing, (with the properties dialog showing on the events tab).
 
Can you post a screenshot of your form, the one closing, (with the properties dialog showing on the events tab).


Please see attached. the one is when i close the form, and the other one is showing the vb code window...
 

Attachments

  • form error.JPG
    form error.JPG
    88.3 KB · Views: 105
  • form_error_code.JPG
    form_error_code.JPG
    94.6 KB · Views: 111
Nope, not quite what I wanted to see. I wanted to see the PROPERTIES DIALOG EVENT tab with the entries there (if any) - like this:

attachment.php
 

Attachments

  • propsheet.png
    propsheet.png
    19.3 KB · Views: 161
Nope, not quite what I wanted to see. I wanted to see the PROPERTIES DIALOG EVENT tab with the entries there (if any) - like this:

Ok sorry. Please see attached...
 

Attachments

  • form property.JPG
    form property.JPG
    75.1 KB · Views: 109
Yeah, because everything looks the way it should, try importing everything (import, not copy and paste) into a new, blank database shell. I think some corruption is creeping in and doing the import should fix that.
 
Try deleting the offending code then re-implementing it.

Also, try compiling.

Chris
 
Thanks Stopher and SOS! Everything looks ok now after importing and then re-applying the codes again.
Thanks so much...
 

Users who are viewing this thread

Back
Top Bottom