Hi Guys
I am designing a project in which in the input form,when the person scans the barcode and it comes up in the textbox.I have written the following code on save button:
It works fine and saving the values in the table.
But my requirement is when the barcode is scanned then it appears in the textbox and without pressing SAVE button ,the above code should run..Which event can i use to solve this problem.So that I can enter multiple barcodes in the textbox one by one without pressing save button and automatically they get saved in the database.
Regards
Aman
I am designing a project in which in the input form,when the person scans the barcode and it comes up in the textbox.I have written the following code on save button:
Code:
Private Sub Command19_Click()
Dim sSQL As String
sSQL = "INSERT INTO inputtable ([date],location,department,BleepedBarcode,Signature) VALUES (#" & Format(Me.Text4.Value, "mm-dd-yy") & "#, '" & Me.Combo12.Value & "','" & Me.Combo15.Value & "', '" & Me.Text17.Value & "','No')"
DoCmd.SetWarnings False
DoCmd.RunSQL sSQL
Text17.Value = ""
Text17.SetFocus
It works fine and saving the values in the table.
But my requirement is when the barcode is scanned then it appears in the textbox and without pressing SAVE button ,the above code should run..Which event can i use to solve this problem.So that I can enter multiple barcodes in the textbox one by one without pressing save button and automatically they get saved in the database.
Regards
Aman