66tigger40
Technical User
Hi
I have the following code which works great - but I know need to add to it so that if it doens't find the barcode then an error message is shown so that the user can't continue?
Thanks in advance
I have the following code which works great - but I know need to add to it so that if it doens't find the barcode then an error message is shown so that the user can't continue?
Thanks in advance
Code:
Private Sub txtBarCodeData_AfterUpdate()
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[BarCodeData] = '" & txtBarCodeData & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me.TimeCompleted.Value = Time()
Me.DateCompleted.Value = Date
Me.MinutesOnBreak.Value = 0
End Sub