I have a form that looks up Records for an unbound drop-down list.
It has worked just fine up until last night.
Now the button on the form to delete a record doesn't work. i get a
"compile error: method or data member not found".
The code for the drop-down is this:
Expand|Select|Wrap|Line Numbers
- Private Sub REC_ID_COMBO_AfterUpdate()
- Dim rs As DAO.Recordset
- If Not IsNull(Me!REC_ID_Combo) Then
- 'Save before move.
- If Me.Dirty Then
- Me.Dirty = False
- End If
- 'Search in the clone set.
- Set rs = Me.RecordsetClone
- rs.FindFirst "[REC_ID] = """ & Me!REC_ID_Combo & """"
- If rs.NoMatch Then
- MsgBox "Not found: filtered?"
- Else
- 'Display the found record in the form.
- Me.Bookmark = rs.Bookmark
- End If
- Set rs = Nothing
- End If
- End Sub
The code to delete a record is:
Expand|Select|Wrap|Line Numbers
- Private Sub Command389_Click()
- On Error GoTo Err_Command389_Click
- DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
- DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
- Exit_Command389_Click:
- Exit Sub
- Err_Command389_Click:
- MsgBox ERR.Description
- Resume Exit_Command389_Click
- End Sub
Can anyone please help. I have been working on this for 6 hours and have found no answers.