I have a table in sql which contains the following fields:
dbrders
OrderID (int), TraderID, OrderNumber, InvoiceNumber, InvoiceDate.
Linked to this table via the OrderID is a OrderDetails table which contains items for that order. Field names are
dbrderDetails
OrderDetailsID, OrderID, Product, Quantity, UnitPrice, LineTotal.
I have code setup so the user can add a new order to dbrders however I am trying to figure out how I would then get that inserted order and then allow the users to add items to it.
At the moment, I have a query setup which displays any orders the user added which have no items created with it. These are displayed in gridview.
I am trying to get the user to select the appropriate order which will show a form with fields to allow them to add a new item. I was trying details view for this put can't parse the selected OrderID.
Is there a better/easier way of doing this? Once they add an item I want it to be displayed in a gridview so the user can see what they have and havent entered.
dbrders
OrderID (int), TraderID, OrderNumber, InvoiceNumber, InvoiceDate.
Linked to this table via the OrderID is a OrderDetails table which contains items for that order. Field names are
dbrderDetails
OrderDetailsID, OrderID, Product, Quantity, UnitPrice, LineTotal.
I have code setup so the user can add a new order to dbrders however I am trying to figure out how I would then get that inserted order and then allow the users to add items to it.
At the moment, I have a query setup which displays any orders the user added which have no items created with it. These are displayed in gridview.
I am trying to get the user to select the appropriate order which will show a form with fields to allow them to add a new item. I was trying details view for this put can't parse the selected OrderID.
Is there a better/easier way of doing this? Once they add an item I want it to be displayed in a gridview so the user can see what they have and havent entered.