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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with writing a query and expression

Status
Not open for further replies.

jeevenze

Technical User
Mar 13, 2001
62
0
0
US
I have the following query:

SELECT qryporeceived.job_number, qryporeceived.SumOfpo_received, tbljob_info.total_estimate
FROM qryporeceived INNER JOIN tbljob_info ON qryporeceived.job_number = tbljob_info.job_number
GROUP BY qryporeceived.job_number, qryporeceived.SumOfpo_received, tbljob_info.total_estimate;


This returns the fields, 'job-number', 'SumOfpo_received' and 'total_estimate'.
I need help writing a query where there's a field that returns the result of total_estimate - SumOfpo_received. (i.e. subtract SumOfpo_received from total_estimate)

I'd be thankful for any responses.
Thank you

Jeevenze
 
If the result is going to end up on a report I would use another text box in the reports footer.

=[total_estimate] - [SumOfpo_received]

DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Hi DougP,
I'd like the result to be returned in the query...I'm making a webenabled site and I want to create a recordset in ultradev and would like to copy the sql statement to ultradev.
Is there anyway i can return the result in it's own field in a query?

Jeevenze
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top