Click here to Skip to main content
15,904,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to subtract to field in crystalreport i m using vb.net and ms access
i have sellinprice field contain 10 price and buyingprice field contain 10 price i want add those separately and subtract it like
selling price buyingprice
300 200
600 500
---- ----
900 700
900
700
-----
profit=200

how to do this i did summarise for both field showing total but how to subtract those totals
i did like this formula editor
but it shows error
sum({Products.Sellingprice}-{Products.Buyingprice})


kindly help if you know
Posted

1 solution

It depends on where you place the formula field. But you can try this:
SQL
sum({Products.Sellingprice})-sum({Products.Buyingprice})
 
Share this answer
 
Comments
Ganesh Khuspe 6-Mar-13 4:43am    
({Products.Sellingprice})-({Products.Buyingprice})
Can We do dis???
Actually i want to find sutraction of 2 fields...So can we do dis??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900