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 / Queries / August 2005

Tip: Looking for answers? Try searching our database.

Query help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Darryl - 31 Aug 2005 16:49 GMT
I have a table with transactions in it. Here is a rough layout:

trnum, trdate, ttype

Say their are 100 transactions between 7/01/05 and 7/31/05.  I need a report
where is shows the transactions grouped by transaction type (ttype) and at
the
end of the report something like:

100 new transactions  10% type withdrawl 20% type transfer, etc.

Now I have some ulgy stuff latched together to do something close.

Is there a clean way to do this ?

thanks.
Chaim - 31 Aug 2005 18:54 GMT
The summary line should be creatable using a query along the lines of:

SELECT (Select count(*) from [Your Table]) as [Total Transactions], ttype,
              format(count(ttype)/(select count(*) from [Your Table]),
"PerCent") as [Per Cent Breakdown]
FROM [Your Table]
group by ttype;

This gives you the total number of transactions, the type of transactions
and the percentage of the total. It does not give you this information as a
single line summary.

--

Chaim

> I have a table with transactions in it. Here is a rough layout:
>
[quoted text clipped - 12 lines]
>
> thanks.
 
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.