K
KB
I've got a custom access app, Access 2000.
A short bit of history. The app has master orders, in which there are
individual orders to seperate customers inside. While developing,
customer data was not included in the orders (there was some reasoning
for that), but later added in a crappy fashion. At present I'm trying
to reverse this and do it correctly. I'm having trouble linking
customer data to these "payments" within the master order in a 1 to
many relationship (1 customer, to many payments). Right now, the
system relies on duplicate customers for each payment. My problem
isn't in the relationships between tables, but rather building the
interface to work correctly in front of all that.
Relations go like this
Master Order
Payments (links to maser order id)
- then two tables related to payments
Customers (links via customer ID in payment record)
Order Detail lines - (links via payment ID)
My present interface has a master form (Maser Order) with a subform
(Payments) and two subforms within that (Customers & Order Details).
Now I can put a combo box in the payments subform, which will allow me
to select an existing customer (by name), and fill in the customer
subform - and all the linking is ok. Bound column is customer id
stored in payments table.
My problem is, I don't want to use limit to list. If a customer
already exists, fine - use that and save data entry (1 customer to
many payments). However, if its a new customer name, I need the combo
box to allow addition of that customer name, and create a new record
in the customer table that will be populated in the customer subform.
Since the lookup is actually in the payments table (where I need to
store my cust_id to link everything), it only knows of existing
records in the customer table.
Any thoughts?
A short bit of history. The app has master orders, in which there are
individual orders to seperate customers inside. While developing,
customer data was not included in the orders (there was some reasoning
for that), but later added in a crappy fashion. At present I'm trying
to reverse this and do it correctly. I'm having trouble linking
customer data to these "payments" within the master order in a 1 to
many relationship (1 customer, to many payments). Right now, the
system relies on duplicate customers for each payment. My problem
isn't in the relationships between tables, but rather building the
interface to work correctly in front of all that.
Relations go like this
Master Order
Payments (links to maser order id)
- then two tables related to payments
Customers (links via customer ID in payment record)
Order Detail lines - (links via payment ID)
My present interface has a master form (Maser Order) with a subform
(Payments) and two subforms within that (Customers & Order Details).
Now I can put a combo box in the payments subform, which will allow me
to select an existing customer (by name), and fill in the customer
subform - and all the linking is ok. Bound column is customer id
stored in payments table.
My problem is, I don't want to use limit to list. If a customer
already exists, fine - use that and save data entry (1 customer to
many payments). However, if its a new customer name, I need the combo
box to allow addition of that customer name, and create a new record
in the customer table that will be populated in the customer subform.
Since the lookup is actually in the payments table (where I need to
store my cust_id to link everything), it only knows of existing
records in the customer table.
Any thoughts?