I have it working, but I have some concerns.
To create the bar code, you are using
Code:
"*" & [ProdReceivedID_FK] & [RepackBatchBarcode] & "*"
You are using "ProdReceivedID_FK" (and ProdReceivedID_PK) and the "RepackBatchBarcode" to create a printable bar code.
The problem is that ProdReceivedID_PK (ProdReceivedID_FK) is an autonumber and doesn't (and shouldn't) have any real world meaning.
And because it is an autonumber, think about a year from now. Every new entry will cause "ProdReceivedID_PK" to increment. Lets say you have 3 customers and each customer has 3 products. There are 3 products per day per customer.... for 300 days.
What will the "ProdReceivedID_PK" number be at by then? 3 customers X 3 products per day X 300 days. = 2700.
So now, instead of *10001*, *10002* and *10003*, you will/could have *27000001*, *27000002*, *27000003* for Customer A. Is that acceptable??
What are the maximum number or characters allowed in a bar code? 9? 12?
I would advise changing the code to create the repack barcode to add the "*" and store the entire "number" instead of generating the barcode with the asterisks on-the-fly. Much easier searching....
I also suggest having a form to enter new records and a form to select the records to print. (see attached )
Yes, I made a LOT of changes in the attached accdb. (code, queries and forms)