Ok folks, I've had enough with experimentation. And as much as I've stared at the code in the NorthWind sample db - I still can't get it right.
Parts table
Fields:
PartId (autonumber - no dupes)
PartName (text)
Price (currency)
Unit (text)
Master table and associated form called - Arrangements
Fields:
ArrangeID (autonumber - no dupes)
ArrangeName (text)
Sub table and associated subform called - ArrangeDetails
Fields:
ArrangeID (numeric - link to master for detail records - dupes OK)
PartID (numeric - link to Parts table)
PartName (text - extracted from Parts table)
Quantity (numeric - defaults to 1, manually changed)
Price (currency - extracted from Parts table)
Unit (text - extracted from Parts table)
So I've got a master form based on Arrangements, with a SubForm from ArrangeDetails. All I want to do is drop down a ComboBox in the ArrangeDetails subform (using the PartName field), user selects a part, and the detail record is filled in automagically using the fields from the Parts table.
Sorry for the lengthy post - and thanks in advance to anyone willing to read it!
Parts table
Fields:
PartId (autonumber - no dupes)
PartName (text)
Price (currency)
Unit (text)
Master table and associated form called - Arrangements
Fields:
ArrangeID (autonumber - no dupes)
ArrangeName (text)
Sub table and associated subform called - ArrangeDetails
Fields:
ArrangeID (numeric - link to master for detail records - dupes OK)
PartID (numeric - link to Parts table)
PartName (text - extracted from Parts table)
Quantity (numeric - defaults to 1, manually changed)
Price (currency - extracted from Parts table)
Unit (text - extracted from Parts table)
So I've got a master form based on Arrangements, with a SubForm from ArrangeDetails. All I want to do is drop down a ComboBox in the ArrangeDetails subform (using the PartName field), user selects a part, and the detail record is filled in automagically using the fields from the Parts table.
Sorry for the lengthy post - and thanks in advance to anyone willing to read it!