Hi, I have written this code for a search in inventory using recordset. It does work but it got bug and sometimes return the wrong lines
StrBarcode is a double, that's equal to the field "ID" number of what i want to search. Let's say i want to search TST0001 and StrBarcode = 30 then
ID ------------------------- BARCODE
30 ------------------------- TST0001 (EXAMPLE)
Is there another way to do this?
Code:
Set RstInv = CurrentDb.OpenRecordset("Inventory")
With RstInv
.GetRows ([StrBarcode])
.MovePrevious
.Edit
.Fields("Job_No").Value = StrJob_No
.Update
End With
StrBarcode is a double, that's equal to the field "ID" number of what i want to search. Let's say i want to search TST0001 and StrBarcode = 30 then
ID ------------------------- BARCODE
30 ------------------------- TST0001 (EXAMPLE)
Is there another way to do this?