Hello, I am seeking a tip on how to add a function to my database. Currently I have a database to track materials for manufacturing. One table holds the raw materials and a different table holds the finished goods. Each has a different barcode indicator for example raw materials would look like this (BC-R####) with the “#” being a digit. Finished goods would look this this: (BC-SD###). Each type has a different form and different needs. Raw goods can use either a 3 or 4 digit number after the indicator letter.
What I would like to do is have an entry that someone can scan or enter a barcode, then the system would check corresponding table either raw materials or finished goods. If a record with a matching barcode is found I would like it to open the record in form view, otherwise I would open a new data entry in form view.
I am sure I can do most of this in “if statements” however I am not sure how to tell the system to identify the barcode by the indicator letters.
What I would like to do is have an entry that someone can scan or enter a barcode, then the system would check corresponding table either raw materials or finished goods. If a record with a matching barcode is found I would like it to open the record in form view, otherwise I would open a new data entry in form view.
I am sure I can do most of this in “if statements” however I am not sure how to tell the system to identify the barcode by the indicator letters.