Go Back   Talk Microsoft > Microsoft Operating Systems & Software > Microsoft Office Family

Reply
     I need some help in microsoft access?  
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-07-2007, 06:46 PM
Junior Member
 
Join Date: Nov 2007
Posts: 1
Default I need some help in microsoft access?

This should be easy but I have been working with excel for long I have completely forgotten how to do this in access.
What I need is an addition (SUM) formula. Just adding the cells together. My boss wants me to do this in access so I can run reports.
In excel it was something like =SUM(B5:B22). Where would I enter this in Access? (i.e in design view or datasheet view) Any assistance would be greatly appreciated.
Reply With Quote
Links
  #2 (permalink)  
Old 11-07-2007, 07:42 PM
Junior Member
 
Join Date: Nov 2007
Posts: 1
Default

once u have the data in table. its going to be raw data.

then when your makeing your query in design view, you going to have to make a field what does this calculation

i dont exactly rememerb the syntax though.
Reply With Quote
  #3 (permalink)  
Old 11-07-2007, 07:42 PM
Junior Member
 
Join Date: Sep 2007
Posts: 12
Default

There are a couple of different ways you could do this. The first way would be to add a new textbox on the report where you want the sum, and put in a separate section from the one where the fields you want to sum are. Then, go into the properties of that textbox by right clicking on it, click the 'Data' tab, and choose 'Expression'. You can go through the various options and find the SUM operator, then include something like
=SUM( fieldNm)
It may actually be DSUM like the other poster said - not sure.

There are other ways too, but this would probably be the best. Good luck : )
Reply With Quote
  #4 (permalink)  
Old 11-07-2007, 08:08 PM
Junior Member
 
Join Date: Oct 2007
Posts: 5
Default

Use DSum function....This function can add any values you want to reference from a table and return the resulting sum.

DSum(expr, domain, [criteria])

All three parameters are strings so use quotes....

example:
DSum("[TotalCost]", "tblItemPrices","[Type]='Car'")
this example returns the sum of the TotalCost field in the table tblItemPrices where the field Type is equal to Car
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:46 PM.