Error on Form Buttons

CBenfer

Registered User.
Local time
Yesterday, 22:23
Joined
Aug 30, 2012
Messages
51
OK - I had a database that was working pretty well on Friday. I opened it up to test something today and all of a sudden my form stopped working.

It is a simple form - see attached photo for the form view. When I click on either button I get the error in the attached JPG. Here is the code for the buttons:

Code:
Private Sub cmdCancel_Click()
Me.Undo
DoCmd.Close acForm, Me.Name
End Sub

 Private Sub cmdCommit_Click()
Me.QIPDateEntered = Now()
Me.QIPPersonEntered = Me.txtPersonID

 If Me.Dirty Then
    Me.Dirty = False
End If

 DoCmd.GoToRecord , , acNewRec
Me.QIPPartNumber.SetFocus
End Sub
The intent is simply to exit and close the form for the Exit button and for the Accept button to set two fields (which are hidden from view) then save the record and open a new one.

Like I said, this seemed to be working fine on Friday. To my knowledge the only things I would have done after testing this form would have been to clean up some of the formatting (get rid of record selectors, etc.).

Any thoughts?
 

Attachments

  • Error.jpg
    Error.jpg
    79.2 KB · Views: 130
  • FormView.jpg
    FormView.jpg
    71.8 KB · Views: 121
do you have same version where you created the db and edited it, ie. x86, x64?
 
I'm on the same PC.
 
compact and repair or decompile your db.
 
OK - that seemed to fix everything up. Thanks very much for the help!
 
your welcome sir.
 

Users who are viewing this thread

Back
Top Bottom