surfbum3000
Technical User
I have a form frmDeleteRecord with a combobox Combo25. When the frmDeleteRecord is opened, the user is instructed to click on the drop down menu to make a selection. Once this is done, the other fields autofill. This works fine. The problem is after making the selection of the record to delete, the query the Row Source is based on tries to immediately run again. I would like to be able to click on the combobox, make my selection, then click the cmdDelete button. When I click on Combo25 again, I would like to perform a new search. Here is what I have so far:
_________________________________
Sub Combo25_AfterUpdate()
' Find the record that matches the control.
Me.RecordsetClone.FindFirst "[ID] = " & Me![Combo25]
Me.Bookmark = Me.RecordsetClone.Bookmark
End Sub
_________________________________
Private Sub Combo25_Click()
DoCmd.OpenQuery "q_Delete"
End Sub
__________________________________
Private Sub Combo25_GotFocus()
Combo25.Requery
End Sub
_________________________________
Sub Combo25_AfterUpdate()
' Find the record that matches the control.
Me.RecordsetClone.FindFirst "[ID] = " & Me![Combo25]
Me.Bookmark = Me.RecordsetClone.Bookmark
End Sub
_________________________________
Private Sub Combo25_Click()
DoCmd.OpenQuery "q_Delete"
End Sub
__________________________________
Private Sub Combo25_GotFocus()
Combo25.Requery
End Sub