Hi as this is my first post, i will start by saying hello
I have a Database running on an SQL 2005 Server.
I am creating an App using Visual Studio 2005\Visual Basic.
I want to create a form where i enter orders and then enter the products and quanties for each order on a form.
I have a dataset with the orders table and the order details table, these are linked with the Primary key OrderID in the orders table and a OrderID foreign key in the order details table.
When i add Data to the form from the orders table in detail view and then add data from the orderdetails table in a data grid there seems no link between the two, they seem to work independently of each other, in the dataset designer the tables have the correct relationship and also on the Sql server side they have the correct relationship.
how do i get the order details grid to update when i create a new order.
Im new to VB.net, done alot of work in Access and VBA, but i think i might need code to do this?
Or is there a better way of doing this?
whats the norm for a order and order details scenario?
Any help would be appreciated
Many thanks
I have a Database running on an SQL 2005 Server.
I am creating an App using Visual Studio 2005\Visual Basic.
I want to create a form where i enter orders and then enter the products and quanties for each order on a form.
I have a dataset with the orders table and the order details table, these are linked with the Primary key OrderID in the orders table and a OrderID foreign key in the order details table.
When i add Data to the form from the orders table in detail view and then add data from the orderdetails table in a data grid there seems no link between the two, they seem to work independently of each other, in the dataset designer the tables have the correct relationship and also on the Sql server side they have the correct relationship.
how do i get the order details grid to update when i create a new order.
Im new to VB.net, done alot of work in Access and VBA, but i think i might need code to do this?
Or is there a better way of doing this?
whats the norm for a order and order details scenario?
Any help would be appreciated
Many thanks