V
vandy
I have a combo box which searches records in the table. When i type in a
record that is not in the database it prompts a message. The problem is once
I get the message then all the values in text boxes should become null and
clear out. how to do this. At present the values from the previous record is
getting displayed.
Private Sub CboMoveTo_AfterUpdate()
Dim rs As DAO.Recordset
If Not IsNull(Me.cboMoveTo) Then
'Search in the clone set.
Set rs = Me.RecordsetClone
rs.FindFirst "[ITEM_NO] = """ & Me.cboMoveTo & """"
If rs.NoMatch Then
MsgBox "DWG NO DOES NOT EXIST?"
Else
'Display the found record in the form.
Me.Bookmark = rs.Bookmark
End If
Set rs = Nothing
End If
End Sub
thanks for your help in advance
record that is not in the database it prompts a message. The problem is once
I get the message then all the values in text boxes should become null and
clear out. how to do this. At present the values from the previous record is
getting displayed.
Private Sub CboMoveTo_AfterUpdate()
Dim rs As DAO.Recordset
If Not IsNull(Me.cboMoveTo) Then
'Search in the clone set.
Set rs = Me.RecordsetClone
rs.FindFirst "[ITEM_NO] = """ & Me.cboMoveTo & """"
If rs.NoMatch Then
MsgBox "DWG NO DOES NOT EXIST?"
Else
'Display the found record in the form.
Me.Bookmark = rs.Bookmark
End If
Set rs = Nothing
End If
End Sub
thanks for your help in advance