Lets assume I am a tiny shop selling computers. I sell only three computers which are selected through a drop down menu, they are Sony, Mac and Dell.
To avoid the possibility of mistyping and unnecessary delays, I have made a query which says that if the computer is for example Sony price 500 else 0.
I have stopped there with the query because what I want to do is once the details are entered and then click on store, for the price to be stored in a table also.
Ok, let me explain this better, I have a Customer table with name and address
Computer table with serial number as key and Model (the computer model) in it
And then have an order line table which has order line no, serial no, invoice no, quantity, unit price, and amount
then have an invoice table which has date, vat and total.
Now in the order form once the customer details are entered, the model is chosen, if they chose Sony for example, the unit price is filled by itself, through the IIf statement. It seems impossible for the unit price to be stored in the Order Line table though. It comes up with 0 or sometimes nothing at all.
How would I be able to store the unit price in the order line table?
To avoid the possibility of mistyping and unnecessary delays, I have made a query which says that if the computer is for example Sony price 500 else 0.
I have stopped there with the query because what I want to do is once the details are entered and then click on store, for the price to be stored in a table also.
Ok, let me explain this better, I have a Customer table with name and address
Computer table with serial number as key and Model (the computer model) in it
And then have an order line table which has order line no, serial no, invoice no, quantity, unit price, and amount
then have an invoice table which has date, vat and total.
Now in the order form once the customer details are entered, the model is chosen, if they chose Sony for example, the unit price is filled by itself, through the IIf statement. It seems impossible for the unit price to be stored in the Order Line table though. It comes up with 0 or sometimes nothing at all.
How would I be able to store the unit price in the order line table?