maneeshmassey
New member
- Joined
- Sep 8, 2011
- Messages
- 2
- Programming Experience
- Beginner
I have a simple application for taking Customer orders and their Products. I am using Visual Studio 2008 Express Edition and MS Access 2007.My application uses multiple forms. One of the forms is an Add form from where a New Customer along with his/her details like address, phone, city, state etc can be added. Another form is for the Product Details to be added.I want to know how to add Multiple Product Details for the same CustomerID, as a Customer can order multiple products. I am using the following code for the Add button:
Private Sub cmdAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdAdd.Click
MyBindingSource.EndEdit()
DialogResult = Windows.Forms.DialogResult.OK End Sub
This adds a new Customer into the Database with an AutoIncremented CustomerID.Now I need to know how to add 2 or more Product Details for this same CustomerID. How can I do this ? Can anyone please help ?
Private Sub cmdAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdAdd.Click
MyBindingSource.EndEdit()
DialogResult = Windows.Forms.DialogResult.OK End Sub
This adds a new Customer into the Database with an AutoIncremented CustomerID.Now I need to know how to add 2 or more Product Details for this same CustomerID. How can I do this ? Can anyone please help ?