M Costumes
Member
- Local time
- Today, 01:21
- Joined
- Feb 9, 2021
- Messages
- 75
I'm working on a multiple item form where I want the user to be able to select an item from a cbo box, it autofill some fields, and the user can fill in the other fields as necessary. I got it mostly working, except one field does not auto-fill, so I'm beginning to wonder if it is how I have the forms and tables set up.
table: Inventory
RecordID (autonumber)
InventoryID (text)
SetID (text)
RentalRate (currency)
other fields...
table: RentalInventory
RecordID (autonumber)
InventoryID (text)
SetID (text)
RentalRate (currency)
Discount1
Discount2
other fields....
The form record source is table RentalInventory. On the form, I have cboInventoryID with the following row source:
SELECT Inventory.RecordID, Inventory.InventoryID, Inventory.SetID, Inventory.RentalRate
FROM Inventory;
Once the InventoryID is selected, it auto-fills the SetID as it should, but it does not fill the RentalRate. I have another thread going asking about the VBA for this, as I first thought that's where the issue lied, but I'm wondering if it's how I have it set up in general. Any thoughts? I'm very new to all of this, so thank you for your patience with me. Thanks!
update: the RentalRate does not necessarily need to be stored in table RentalInventory. It does need to be displayed on the form so the user has it as a reference to fill out the other information.
table: Inventory
RecordID (autonumber)
InventoryID (text)
SetID (text)
RentalRate (currency)
other fields...
table: RentalInventory
RecordID (autonumber)
InventoryID (text)
SetID (text)
RentalRate (currency)
Discount1
Discount2
other fields....
The form record source is table RentalInventory. On the form, I have cboInventoryID with the following row source:
SELECT Inventory.RecordID, Inventory.InventoryID, Inventory.SetID, Inventory.RentalRate
FROM Inventory;
Once the InventoryID is selected, it auto-fills the SetID as it should, but it does not fill the RentalRate. I have another thread going asking about the VBA for this, as I first thought that's where the issue lied, but I'm wondering if it's how I have it set up in general. Any thoughts? I'm very new to all of this, so thank you for your patience with me. Thanks!
update: the RentalRate does not necessarily need to be stored in table RentalInventory. It does need to be displayed on the form so the user has it as a reference to fill out the other information.
Last edited: