Solved

Counting on Report

Posted on 2011-02-18
3
320 Views
Last Modified: 2012-05-11
Experts,

I seem to not be able to count the TOTAL of  [LCType]
I have it counting PER the LCType but need in addition the total Issued.
but need it to summ a GrandTotal Count of LCType.

eg:  I have 16 LCTypes and might have 50 of each type issued but can not sum this "50" for each type to arrive at a Grand total of say 1000 [LCTypes]  issued.  

I have tried "over Group", Over All in the Running Summ property of the field but does not summ it.  I know it requires modification to the SQL but this is tricky for me as it is outside of the normal canned stuff in MSAccess.


Thank you...
here is the SQL:
SELECT Sum(tblLetterOfCredit.amount)
         AS SumOfamount, Count(tblLCTypeDropbox.lctype) AS CountOflctype, tblLCTypeDropbox.LCType, Sum(IIf([CurrencyID]=1,[Amount],Round([Amount]*[ExchangeRate]))) AS Sum1

FROM tblCurrencyExchange RIGHT JOIN (tblLetterOfCredit INNER JOIN tblLCTypeDropbox ON tblLetterOfCredit.LCType = tblLCTypeDropbox.ID)
      ON tblCurrencyExchange.CurrencyID = tblLetterOfCredit.Currency

WHERE (((tblLetterOfCredit.DateOfIssueSB) Is Not Null) AND ((tblLetterOfCredit.ExpiredYN) Is Null))
GROUP BY tblLCTypeDropbox.LCType;
 summ
0
Comment
Question by:pdvsa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 77

Expert Comment

by:peter57r
ID: 34926041
Just put a textbox into the footer with the controlsource..
= Count(lctype)
0
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
ID: 34926072
Sorry that's wrong - I didn't realise you were already grouping in the query
=SUM ( CountOflctype)
0
 

Author Comment

by:pdvsa
ID: 34926154
no actually that did it.  I had changed it to
Sum([CountOflctype])

and it summed it.  Damn that was easy overlook on my part.  thanks
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question