Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / December 2005

Tip: Looking for answers? Try searching our database.

Sums in report

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Veggis - 01 Dec 2005 12:40 GMT
Hi

I'm no expert with reports : I have a query selecting groups of items -
having their own itemID so to speak - I have managed to list these in a
way so that each group of Items is listed in its own "table" in the
report.

[Name] - [Description]- [Price]
Item1 socks 25
Item1  trousers 90
Item1  handkerchiefs 34

Sum

[Name] - [Description]- [Price]
Item2 coffins 334
Item2 tires 626

Sum

......

[Total Sum]

I just want to sum up each of these distinct tables - the price - and
put it in below each of them. I've only managed to sum up the price row
of the entire query - with the DSUM-routine. I recon it should be
possible to take only the Item1-items and sum them up, putting it in
below the first table - and then the Item2 and so forth. Is there a
really easy way to do this? Or would I need to make a recordset of all
the items - and put it into the [criteria]-argument in the
DSum-routine? I know I could make queries to sum up each of them - but
then I would have to make a new query for each new type of ItemID the
user would want to add to the database - if you know what I mean. I
want it to be dynamic.

I would want something like =DSum("[price]";"myQuery";"Where
[nameInQuery] = [nameInReport])

Hope someone is able to help

regards

Vegard
Duane Hookom - 01 Dec 2005 14:27 GMT
DSum() is very rarely required in reports. To sum Price in a group footer,
use and expression like:
=Sum([Price])
or maybe
=Sum([Price] * [Quantity])

Signature

Duane Hookom
MS Access MVP
--

> Hi
>
[quoted text clipped - 40 lines]
>
> Vegard
Veggis - 06 Dec 2005 15:39 GMT
Thanks ! I'lll try that.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.