Hello,
I am working on an inventory database and am at a loss on how to get the following to work in a form based on a table named SCAN TABLE.
In my SCAN FORM I have a date field, a lookup field containing employee names of those who will fill the form out, and a field we use to scan a lottery ticket. The barcode on the ticket has 3 bits of information in it which are GAME NUMBER, BOOK NUMBER, and TICKET NUMBER. I created 3 calculated fields titled the same which are automatically populated using LEFT & MID Functions.
Here is where I am stuck. In a separate table named GAMES TABLE I have 4 columns of information which are GAME NUMBER, GAME NAME, TICKET VALUE, and TICKETS IN BOOK. There are about 50 rows with different values such as GAME 54 is $3,000,000 TAXES PAID with a TICKET VALUE of $20 and has 30 TICKETS IN BOOK on ROW 1. What I am trying to do is create 3 more fields on my SCAN FORM named GAME NAME, TICKET VALUE, and TICKETS IN BOOK and populate them automatically.
The population would be based on the scanned GAME NUMBER on the SCAN FORM. It would need to lookup the matching GAME NUMBER in the GAMES TABLE and then populate the GAME NAME, TICKET VALUE, and TICKETS IN BOOK fields on the SCAN FORM from ROW 1 in the GAMES TABLE.
If someone would be so kind as to show me how to do this I would be forever grateful however VBA is not my forte by ant stretch.
Thanks in advance.
Dean