Hello:
I have been trying to figure out how to automatically show a "sum total" of the number of records (from the underlying query) in report form.
For example, if the design view of a query lists 25 records, how can i visually show the "25" number in a report that is linked to this query?
Thank you
5 3528
You can add a text box to your report. In the Control Source Property, put... =DCount("MyQueryName", "MyPrimaryField")
That will add the number of records to your text box when the report runs. If you want to then format it for eye appeal, you could do something like this in the Control Source... ="Total Records in this Report = " & DCount("MyQueryName", MyPrimaryField")
Hope that helps,
Brad.
Brad:
The name of my underlying query is "qrydataentryerrors" and the primary key for the underlying table is "ID".
I created a text box in the report footer and added =DCount([qrydataentryerrors],[ID]) to the control source.
That did not work. Am I missing something? Is the syntax incorrect?
Thank you,
Eric
Brad:
The name of my underlying query is "qrydataentryerrors" and the primary key for the underlying table is "ID".
I created a text box in the report footer and added =DCount([qrydataentryerrors],[ID]) to the control source.
That did not work. Am I missing something? Is the syntax incorrect?
Thank you,
Eric
Eric,
For one, I steered you wrong. My apologies. You should have your field name listed before your query name.
Second, I would suggest using quotes around your field name and your table instead of brackets.
It should look something like this... - DCount("ID", "qrydataentryerrors")
It helps when someone doesn't tell you to turn right when you are supposed to be turning left :)
Brad.
Hi there. I have a question in this area. I hope you don't mind me chiming in.
I am summing records. Each month I want to sum my record count by month and year to date (YTD); providing both report counts at the end.
I am using this for monthly and it works fine:
="Monthly Summary for " & "'IS #' = " & " " & [IS #] & " (" & Count(*) & " " & IIf(Count(*)=1,"detail record","detail records") & ")"
I don't understand what to write to sum the record count YTD.
Can you help?
Hi there. I have a question in this area. I hope you don't mind me chiming in.
I am summing records. Each month I want to sum my record count by month and year to date (YTD); providing both report counts at the end.
I am using this for monthly and it works fine:
="Monthly Summary for " & "'IS #' = " & " " & [IS #] & " (" & Count(*) & " " & IIf(Count(*)=1,"detail record","detail records") & ")"
I don't understand what to write to sum the record count YTD.
Can you help?
From thescripts resources I found “Count Data on a Report & summarize it at the end”-beacon & Jim Doherty" through this I realized that I had a footer thing going on. As soon as I moved all of the summing elements that were incorrectley summing into a subsequent footer the suming behaves the way I want it to. Glad to know I have that back up.
But, what if multiple footers sum & counting on one page?
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Sean C. |
last post by:
Helpful folks,
Most of my previous experience with DB2 was on s390 mainframe systems
and the optimizer on this platform always seemed very predictable and
consistent. Since moving to a WinNT/UDB...
|
by: Sondra Wilson |
last post by:
I have created a sorted query. The total(records) I get in the query is
correct. My problem lies with getting that total into my report.
I use count to insert the total number of records in my...
|
by: Riegnman |
last post by:
Hey guys, I'm in need of a little help. I am very new to access but
have been trying to learn. My problem is as follows. . .
We have time clocks that dump the badge punches into a .log file on...
|
by: CSDunn |
last post by:
Hello,
I have a situation with MS Access 2000 in which I need to display report
data in spreadsheet orientation (much like a datasheet view for a form). If
you think of the report in terms of what...
|
by: Mr. Smith |
last post by:
Hello all,
My code can successfully open, write to, format and save several
worksheets in a workbook then save it by a given name, close and quit excel.
My problem is that if I try and do it...
|
by: Bob Alston |
last post by:
Most of my Access database implementations have been fairly small in
terms of data volume and number of concurrent users. So far I haven't
had performance issues to worry about. <knock on wood>
...
|
by: Brad |
last post by:
Thanks for taking the time to read my question.
I have a table of data that has Date, Data and Category. I need to
show, in
a report, each Categories Data by Date. The Date has to be it's own...
|
by: ricktech101 |
last post by:
Hi,
I have a table with a field that shows the number of pieces that a
parcel contains. It looks like this:
ParcelID, Pieces, Description
Data example:
1001, 5, Jackets
1002, 10, shoes
etc
|
by: ddecoste |
last post by:
I have a need to add a visual representation to some data in Access.
I need to draw a matix of squares inside another square. I have all
the data that I need in a record in Access. The data...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |