I'm hoping someone can help with an issue I'm having. I'm creating a database for a manufacturing joinery. For 1 of my forms, Ive to create a despatch form which includes order details along with customer details. Some customers can have contracts in which
they get a fixed price on certain item. This is where the problem lies.
For my customers table, I have a field called "On contract" which is a Yes/No field. I've created a query to attempt to make this form. I'm having trouble with adding a total column at the end of this query. Quantity,Unit Price, Contract Price
are also in the query. I've been trying to build an expression to say like;
Assuming you are using the database is SQL Server:
,[Total] = CASE WHEN [On Contract] = 'Yes' THEN [Quantity] * [Contract Price]
WHEN [On Contract] = 'No' THEN [Quantity] * [Unit Price] END
Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.