Computing.Net > Forums > Database > Access calculation

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Access calculation

Reply to Message Icon

Name: cach
Date: June 25, 2007 at 07:46:17 Pacific
OS: Win 2000 SP4
CPU/Ram: 1048
Product: Dell
Comment:

I'm new to Access & need some help summing fields from different tables.
I have 3 tables:
Table Fields
Products: Prod Name, Opening stock
Supplies: Prod Name, quantity received,date
Sales: Prod name, quantity sold, date

The Supplies & Sales tables can have many lines for the same product.

On a form for new sales orders I want to state current stock held. I have produced queries which display opening stock, Total quantity received and Total sales for each product, but I want to display for a given product:
Opening stock + Total deliveries -Total sales

How can I do this calculation? Should I produce a query that refers to the other 3 queries? Or can I have a form with a combo box top select the product and then use an expression to add up the 3 components of the sum?

Thanks

Cliff




Sponsored Link
Ads by Google

Response Number 1
Name: pingy
Date: July 3, 2007 at 15:01:44 Pacific
Reply:

Cliff

You can do calculations inside a textbox so it displays the result.
So place a textbox on your form, open the properties window for the textbox and type the following in the property "Controlsource":

=[Opening stock] + [Total deliveries] -[Total sales]

Don't forget the "=" sign and between the brackets are the fieldnames of the query that is assigned to the form.


0

Response Number 2
Name: cach
Date: July 5, 2007 at 08:52:10 Pacific
Reply:

Pingy

Thanks for your help

Cliff


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Database Forum Home


Sponsored links

Ads by Google


Results for: Access calculation

calculation across hierarchies www.computing.net/answers/dbase/calculation-across-hierarchies/544.html

Hierarchy of calculations in access www.computing.net/answers/dbase/hierarchy-of-calculations-in-access/208.html

summarising in access-using query www.computing.net/answers/dbase/summarising-in-accessusing-query/146.html