Elana
Registered User.
- Local time
- Today, 10:41
- Joined
- Apr 19, 2000
- Messages
- 232
I am developing a property insurance management system. We have a table called tblBuildings that has a composite primary key of LocNo and BldgNo fields. I have a table called tblPremiums where I will place calculated premiums for a particular building. tblPremiums has a primary key of called PremID (autonumber). It also has a foreign composite key using LocNo and BldgNo to refer to the appropriate building in tblBuildings.
I have created an autolookup query so when the user places the appropriate LocNo and BldgNo in the tblPremium record, the address of the building automatically fills in. Works fine, but...
Here's my problem. On my data entry form, I want the user to be able to select the appropriate building from a combo box and have the information fill in appropriately. This will only work after I've manually placed bldgno in the BldgNo field. I've created a lookup query that shows the LocNo and BldgNo, but it only allows for one bound column (LocNo) when you select the record and it will only autolookup the first building (BldgNo 1) of any chosen location.
How do I get the bound column to store the composite key?
I hope this is clear enough for someone to give me some direction. Many thanks for any help you can provide.
I have created an autolookup query so when the user places the appropriate LocNo and BldgNo in the tblPremium record, the address of the building automatically fills in. Works fine, but...
Here's my problem. On my data entry form, I want the user to be able to select the appropriate building from a combo box and have the information fill in appropriately. This will only work after I've manually placed bldgno in the BldgNo field. I've created a lookup query that shows the LocNo and BldgNo, but it only allows for one bound column (LocNo) when you select the record and it will only autolookup the first building (BldgNo 1) of any chosen location.
How do I get the bound column to store the composite key?
I hope this is clear enough for someone to give me some direction. Many thanks for any help you can provide.