I have no idea what is going on, but a form I have that has a spell checker button on it, seems to occasionally cause the attached error message ...(The expression on click you entered as the event property setting produced the following error: Object or class does not support the set of event....). After this happens no button on the form will work. This is happening on a pop up form that allows for users to enter details about an entry from a previous form. There are some text box's on this form which are populated from the previous form that I don't want spell checked or changed. I just want it to spell check the 4 memo box's which users are entering details about. I believe what is happening when spell check button is pressed it sometimes seems to try and check the auto populated at the top and not the memo box's and something gets crossed. It works for a while and then when the message occurs nothing will work, but going into design view and playing around somehow seems to fix it for a while and then a day later the same thing happens. I am not sure what to check as I don't know what or why this is happening. I am hoping someone can provide an answer. I hate it when things work sometimes.
The code I am using on this form is:
Code:
Option Compare Database
Option ExplicitPrivate Sub cmdNoteComplete_Click()
Me.PNComplete = Now()
DoCmd.Close
End Sub
Private Sub cmdNoteIncomplete_Click()
Me.PNStarted = Now()
DoCmd.Close
End Sub
Private Sub Command37_Click()
DoCmd.RunCommand acCmdSpelling
End Sub
The code that I am using from my other form that brings this form up is as follows:
Code:
Private Sub Command65_Click()
Dim intID As Integer
intID = Me.SessionID
DoCmd.OpenForm "frmProgressNotes", , , "[DSLIDNumber]=" & [SessionID], , acDialog
Me.Requery
With Me.RecordsetClone
.FindFirst "SessionID=" & intID
Me.Bookmark = .Bookmark
End With