I needed to create a database for my business, I’m almost done but I’m facing a problem in my 'New Order' form,
I'm using MS Access 2013, on windows 7.
I have created the following tables:
Products: (ID{PK}, Item, Volume, Quantity, Price)
Customers: (CustomerID{PK} ,Name , Phone, address, etc.)
Order: (OrderID{PK}, CustomerID{FK}, date)
OrderDetails: (OrderID{FK}, Item, Volume, Quantity, Unit Price, Price{Quantity* Unit Price})
I have created a form in which you insert the (Order) details and it includes a subform in which the source object is the table (OrderDetails), I can successfully add items, my problem is inserting the 'Volume' and 'Unit Price', which I want to be done Automatically source is 'Products' Table, because later on I want to add these together(Order Total).
I have tried messing with relationships but with no success.
Thanks in advance as I understand that this is a lot of info.
I'm using MS Access 2013, on windows 7.
I have created the following tables:
Products: (ID{PK}, Item, Volume, Quantity, Price)
Customers: (CustomerID{PK} ,Name , Phone, address, etc.)
Order: (OrderID{PK}, CustomerID{FK}, date)
OrderDetails: (OrderID{FK}, Item, Volume, Quantity, Unit Price, Price{Quantity* Unit Price})
I have created a form in which you insert the (Order) details and it includes a subform in which the source object is the table (OrderDetails), I can successfully add items, my problem is inserting the 'Volume' and 'Unit Price', which I want to be done Automatically source is 'Products' Table, because later on I want to add these together(Order Total).
I have tried messing with relationships but with no success.
Thanks in advance as I understand that this is a lot of info.
Comment