As many of you are probably aware, I have been much challenged to come up with a "simple" combo box to move to a selected record on the same form, so I tried again with the combobox wizard today, which works ok for a while, then eventually (after 3-7 correct selections) crashes.
Anyway, the error I get is "Runtime 3077 - Syntax error (missing operator) in expression"
The code the wizard created is:
Private Sub Combo183_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[MSP_ID] = '" & Me![Combo183] & "'"
Me.Bookmark = rs.Bookmark
End Sub
Where MSP_ID is the primary key on the table the master form is based on. BTW, the debugger pts to the line starting with "rs.findfirst etc" as the source of the error.
Any ideas?
TGH
Anyway, the error I get is "Runtime 3077 - Syntax error (missing operator) in expression"
The code the wizard created is:
Private Sub Combo183_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[MSP_ID] = '" & Me![Combo183] & "'"
Me.Bookmark = rs.Bookmark
End Sub
Where MSP_ID is the primary key on the table the master form is based on. BTW, the debugger pts to the line starting with "rs.findfirst etc" as the source of the error.
Any ideas?
TGH