Hi,
With a barcode scanner I will scan the items that are "out" in my table, as they come back in. After being scanned, I want the items to be update to the new status "in". To do that I created a table with those fields:
itemnumber
dateout
status (in or out)
datein
Then I created Query1 to filter the table with a specific criteria "itemnumber1" (the one I will scan) with the status "out". I then use an update query named Query2 to change the status of that item to "in" and to add the time and date in the field datein.
I would like to be able to use a macro or a code that will do a loop or restart the Query1 if I have multiple items to scan and will stop if in the criteria itemnumber1 is Null.
Is it possible and how can I do that.
Frank
With a barcode scanner I will scan the items that are "out" in my table, as they come back in. After being scanned, I want the items to be update to the new status "in". To do that I created a table with those fields:
itemnumber
dateout
status (in or out)
datein
Then I created Query1 to filter the table with a specific criteria "itemnumber1" (the one I will scan) with the status "out". I then use an update query named Query2 to change the status of that item to "in" and to add the time and date in the field datein.
I would like to be able to use a macro or a code that will do a loop or restart the Query1 if I have multiple items to scan and will stop if in the criteria itemnumber1 is Null.
Is it possible and how can I do that.
Frank