StuartBombay
Programmer
My client wants all customer/order information on one form - they do now want to open a new form to add customers or orders.
I created an unbound form for customers, I used unbound because I found that when using a bound form adding a new customer would overwrite existing ones. I have this working by using an 'ad new' and 'save' button, and lots of code behind it.
The customer form has a sub-form for orders. A customer can have more than one order. I made a continuous bound form for the orders sub form. The orders show up correctly but again, when I go to add a new order it overwrites an existing order.
Do I have to make the sub form unbound also? If so, how? I'm having trouble with that because of the one-to-many relationship. I can grab the recordset in code, but how do I indicate on the form that there is more than one order for the selected customer?
Hope I'm making sense here, or at least enough sense to get some help with this!
Thanks-
I created an unbound form for customers, I used unbound because I found that when using a bound form adding a new customer would overwrite existing ones. I have this working by using an 'ad new' and 'save' button, and lots of code behind it.
The customer form has a sub-form for orders. A customer can have more than one order. I made a continuous bound form for the orders sub form. The orders show up correctly but again, when I go to add a new order it overwrites an existing order.
Do I have to make the sub form unbound also? If so, how? I'm having trouble with that because of the one-to-many relationship. I can grab the recordset in code, but how do I indicate on the form that there is more than one order for the selected customer?
Hope I'm making sense here, or at least enough sense to get some help with this!
Thanks-