Hello everyone,
Did a lot of searching around, found some solutions that looked like they should work, but didn't, and have been stuck for a few days now. Now, I'm still quite new to Access and SQL, but so far I've completed a number of things in my program.
What I am building is a Point of Sale system. I have a main screen with buttons that ask "Add Customer," "Add Item into Inventory," "Register," "Quit." My add customer works great, my add items works great, quit works great.
The part I'm getting hung up on is creating the form that acts as the register for the POS. I have a form (TransMenu-F) that's Control Source is a table (ItemAdd-T) with fields for the Sale screen, such as "TransNumber, TransDate, TransTime, TransItem1, TransCost1, etc. The goal is to have a user enter information in the form, which puts it in the ItemAdd table, and then the ItemAdd table would be used for printing the receipt, as well as appending the ItemAdd information to a master table where all transactions are held.
And, I am trying to set the (TransMenu-F) up so there is a text box where a SKU (TransItem1 above) could be entered by hand or by barcode scanner, and upon entering this SKU, it would query my inventory table (ItemInfo-T), find the SKU, and populate another text box on my transaction form (TransMenu-F) just to the right of the SKU text box, that would display the products description, and in another text box to the right of that, the price of the item.
If you're following me, the final goal is to have a form, be able to enter a SKU into it, have it query my inventory table, populate the form with the item's description and price, and be able to go to the next line and do the same thing until all items are run up, then the bottom would be "tax, total" fields, and then enter amount paid, figure out change, then finally add the transaction info into the master transaction table, as well as print out a receipt of all that transactions info.
I've been messing around with dlookup, I tried a couple queries, but read that it would be more efficient to query all tables involved, and have the form control source be that query, and a couple other solutions I can't remember.
Is my thought process correct/efficient, and what's the best way to implement this feature?
I apologize if that's a lot of reading, and since I'm stuck on how to make it work properly, I don't have much code to present.
TIA
Adam