Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

subtract amount of two fields

Avatar of yahshuah
yahshuah asked on
Microsoft SQL ServerVisual Basic ClassicSQL
4 Comments1 Solution326 ViewsLast Modified:
subtract amount of two fields

[tblPurchaseOrder.Amount]*.12 as VAT, [tblPurchaseorder.Amount] - [Vat] as exVat, tblPurchaseorder.Amount

but exVat is = tlbpurchase.Amount it doesnt subtract tblpurchaseorder.Amount*0.12

whole sql querry

[tblPurchaseOrder.Amount]*.12 as VAT, [tblPurchaseorder.Amount] - [Vat] as exVat, tblPurchaseorder.Amount

SELECT tblPurchaseOrder.ProductID, tblPurchaseOrder.Description, tblPurchaseOrder.Quantity, tblPurchaseOrder.Unit, tblPurchaseOrder.UnitPrice, tblPurchaseOrder.PreparedBy, tblPurchaseOrder.ApprovedBy, tblPurchaseOrder.PurchaseOrderNo, tblPurchaseOrder.Status, [tblPurchaseOrder.Amount]*.12 as VAT, [tblPurchaseorder.Amount] - [Vat] as exVat, tblPurchaseorder.Amount
FROM tblPurchaseOrder INNER JOIN tblSupplier ON tblPurchaseOrder.SupplierID = tblSupplier.SupplierID
WHERE (((tblPurchaseOrder.Status)="Approved")) and  (((tblPurchaseOrder.quantity)<>0))   ;
Avatar of Qlemo
QlemoFlag of Germany image"Batchelor", Developer and EE Topic Advisor
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answers