Hello,
I'm currently practising the basics of database and practising making one and can't get my head around using VBA to add a record using multiple text boxes.
I want to be able to type into 5 different text boxes and then click on a button which will place the 5 values into 5 separate fields of a table.
ex. txtbox1 value goes to field1 in the table etc.
The names of the objects in the database:
Text boxes:
- txtItem
- txtSupplier
- txtStockLevel
- txtReOrderLevel
- txtBuyingPrice
Table name: tblProducts
Button name: cmdAdd
If anyone could help with the VBA code or link me to a helpful guide it would be much appreciated!
Thanks!