Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using calculation in query

Status
Not open for further replies.

waymond

Programmer
Mar 1, 2005
118
US
I have a sum calculation I need to use in a query
Total: ([raised]-[disbursed]) expression
How do I get this in the table for the total field.

Lets say my table is called funding
 
Code:
select ([raised]-[disbursed]) as TOTAL from FUNDING

or in query designer:
Total: (FUNDING.[raised]-FUNDING.[disbursed])

If your integers are stored as text however, you will need to use the format function to get them to numbers.

Hope this helps,

Alex

A wise man once said
"The only thing normal about database guys is their tables".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top