G
Guest
I have an unbound textbox that I use to search for and jump to specific
records. Everything works fine until the user clears the textbox.
Here is the code I use:
Dim rs As DAO.Recordset
Set rs = Me.Recordset.Clone
rs.FindFirst BuildCriteria("[PlantID]", dbText, PlantIDFilterBox)
If Not rs.NoMatch Then
Me.Bookmark = rs.Bookmark
Else
MsgBox "PlantID Not Found!", vbExclamation, "Warning"
End If
rs.Close
Set rs = Nothing
If the textbox is empty and the After Update event is fired, I get an
"Invalid Use of Null" runtime error (94). How do I check for an empty
textbox? What would be a good course of action?
Thanks
Dave
records. Everything works fine until the user clears the textbox.
Here is the code I use:
Dim rs As DAO.Recordset
Set rs = Me.Recordset.Clone
rs.FindFirst BuildCriteria("[PlantID]", dbText, PlantIDFilterBox)
If Not rs.NoMatch Then
Me.Bookmark = rs.Bookmark
Else
MsgBox "PlantID Not Found!", vbExclamation, "Warning"
End If
rs.Close
Set rs = Nothing
If the textbox is empty and the After Update event is fired, I get an
"Invalid Use of Null" runtime error (94). How do I check for an empty
textbox? What would be a good course of action?
Thanks
Dave