M
MandyS
Guest
I have 4 tables
Table Contacts - with a primary key of ContactID plus other contact information.
Table Adverts
AdvertID primary key autonumber
ContactID foreign key.
A contact can have many adverts
Table Payment Details
payment type ID primary autonumber key
foreign key of contactID
payment type (card cheque etc)
card number
expiry date etc.
One contact could have many payment methods - e.g. they might pay by cheque, Visa or Mastercard. We want to hold all their preferences, with card numbers and expiry dates, rather than overwriting this information when they change between payment methods
Table Orders
OrderID - autonumber primary key
AdvertID - foreign key (One advert can have multiple orders.)
Date of order
Payment method for this order (to be selected from the payment details table.
I have created a main form to enter adverts and orders (both sub forms). I want to have a combo box (or list) on the order sub form which allows me to select from a list of this customer's payment methods (only this customer). Currently my combo box contains all customers payment methods in a (very) long list
My relationships appear to be set up correctly, but I just can't work out what I need to do.
Thanks
Table Contacts - with a primary key of ContactID plus other contact information.
Table Adverts
AdvertID primary key autonumber
ContactID foreign key.
A contact can have many adverts
Table Payment Details
payment type ID primary autonumber key
foreign key of contactID
payment type (card cheque etc)
card number
expiry date etc.
One contact could have many payment methods - e.g. they might pay by cheque, Visa or Mastercard. We want to hold all their preferences, with card numbers and expiry dates, rather than overwriting this information when they change between payment methods
Table Orders
OrderID - autonumber primary key
AdvertID - foreign key (One advert can have multiple orders.)
Date of order
Payment method for this order (to be selected from the payment details table.
I have created a main form to enter adverts and orders (both sub forms). I want to have a combo box (or list) on the order sub form which allows me to select from a list of this customer's payment methods (only this customer). Currently my combo box contains all customers payment methods in a (very) long list
My relationships appear to be set up correctly, but I just can't work out what I need to do.
Thanks