I am trying to program a barcode system in my database for a easy way to log in samples.
I have a field called Text18 this is where barcode is scanned in. I want to be able to click on that field and just scan sample after sample. (or idk if possible have an invisible field where you can just scan into)
Scanning in the Sample will just give a time stamp for that step in our process (pretty much marking that we did it).
So once the scan is done (the barcode gives us back our id's (ex. PL-0001-NT)) our ID is entered into Text18 via barcode scanning. Now I want to do the next sample, but the last sample wont updated until I hit enter/tab. How can I not only enter/tab the sample, but have it clear and start back at Text18 ready to enter the next sample.
Code:
Private Sub Text18_Change()
Barcode = Text18.Value
LenBarcode = Len(Barcode)
If LenBarcode <= 10 Then
Me.Requery
Me.BloodProcess.Value = True
Me.DateBloodProcess = Date
Me.StartTimeBloodProcess = Time
Me.BloodProcessedIntials.Value = Text5.Value
DoCmd.Save
ElseIf LenBarcode > 10 Then
Me.Text18 = ""
End If
End Sub