DaronSpicher
New Member
- Joined
- Jan 20, 2003
- Messages
- 2
I have a single database with two tables.
The "Inventory" table contains 3 fields Number(key), Name, Country. This table has 15 records. All 3 fields are TEXT.
The "Load" table is the same format. Number, Name, Country. All 3 are TEXT.
I have a Form called "Scan" where I can input text and upon enter, I go to my VB code and throw up a messagebox that contains the text I put in the Scan textfield.
What I need to do, is to search Inventory.Number field for this text. If I find it, I want to put all 3 fields from that row into the Load table.
Practical application is such that I can then scan a can of soup with a barcode scanner which would enter in a number "499500394" into my "Scan" field. Then, my VB would search the Inventory.Number field. If it finds a match there, copy all 3 fields into the "Load" table, creating a new record. After scanning 100 items, I would be able to have a printable list of things in the "Load" table.
If it is not found, I would like to handle that too. But for now, I need the successful case to work right.
I think this should be fairly easy, but I haven't gotten it yet. I hope someone with experience has time to help me out.
Thank you,
Daron Spicher
The "Inventory" table contains 3 fields Number(key), Name, Country. This table has 15 records. All 3 fields are TEXT.
The "Load" table is the same format. Number, Name, Country. All 3 are TEXT.
I have a Form called "Scan" where I can input text and upon enter, I go to my VB code and throw up a messagebox that contains the text I put in the Scan textfield.
What I need to do, is to search Inventory.Number field for this text. If I find it, I want to put all 3 fields from that row into the Load table.
Practical application is such that I can then scan a can of soup with a barcode scanner which would enter in a number "499500394" into my "Scan" field. Then, my VB would search the Inventory.Number field. If it finds a match there, copy all 3 fields into the "Load" table, creating a new record. After scanning 100 items, I would be able to have a printable list of things in the "Load" table.
If it is not found, I would like to handle that too. But for now, I need the successful case to work right.
I think this should be fairly easy, but I haven't gotten it yet. I hope someone with experience has time to help me out.
Thank you,
Daron Spicher