R
Ray
Hi,
I have a form setup with an unbound text box for searching record by a
specific field. It works perfectly, when i type in the text, it searches and
locates the record i need. The only issue is the text i typed in for the
search stays after i've found the record so what i want it to do is remove
the text in the field after i've found the record. I'm guess i would have to
do an event procedure on After Update for this to work. Any help would be
appreciated. Here's my code for the search text box:
Private Sub ID_Click()
On Error GoTo Err_ID_Click
DoCmd.GoToRecord , , acNewRec
Exit_ID_Click:
Exit Sub
Err_ID_Click:
MsgBox Err.Description
Resume Exit_ID_Click
End Sub
I have a form setup with an unbound text box for searching record by a
specific field. It works perfectly, when i type in the text, it searches and
locates the record i need. The only issue is the text i typed in for the
search stays after i've found the record so what i want it to do is remove
the text in the field after i've found the record. I'm guess i would have to
do an event procedure on After Update for this to work. Any help would be
appreciated. Here's my code for the search text box:
Private Sub ID_Click()
On Error GoTo Err_ID_Click
DoCmd.GoToRecord , , acNewRec
Exit_ID_Click:
Exit Sub
Err_ID_Click:
MsgBox Err.Description
Resume Exit_ID_Click
End Sub