472,780 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,780 software developers and data experts.

Access query - getting results

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 datasheet.(That's
fine) My report also needs the number of records from the query. When I use
"Count", I get the whole datasheet and not just the "sorted query".

Is there any way to get the number that I need?

Any help is appreciated. Thank you.

--
Sondra Wilson
###########
so******@online.no

A smile travels faster
than a virus.
Nov 12 '05 #1
4 8444
I'm a little confused as to what you have and where from this
question.

However, just guessing: perhaps you could use a DCount function as the
Control Source of a Calculated Control on your report to accomplish
your purpose?

Please follow up here in the newsgroup, not by e-mail. Thanks.

Larry Linson
Microsoft Access MVP

"Sondra Wilson" <so******@online.no> wrote in message news:<L8********************@news2.e.nsc.no>...
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 datasheet.(That's
fine) My report also needs the number of records from the query. When I use
"Count", I get the whole datasheet and not just the "sorted query".

Is there any way to get the number that I need?

Any help is appreciated. Thank you.

Nov 12 '05 #2
PPK

"Sondra Wilson" <so******@online.no> wrote in message
news:L8********************@news2.e.nsc.no...
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 datasheet.(That's
fine) My report also needs the number of records from the query. When I use "Count", I get the whole datasheet and not just the "sorted query".

Is there any way to get the number that I need?

Any help is appreciated. Thank you.

--
Sondra Wilson
###########
so******@online.no

A smile travels faster
than a virus.

Go to: http://www.mvps.org/access/
Best Regards
Petra Klatt (MVP)

Nov 12 '05 #3
On Sat, 30 Aug 2003 21:35:26 GMT, "PPK" <PP*@hotmail.com> wrote:

"Sondra Wilson" <so******@online.no> wrote in message
news:L8********************@news2.e.nsc.no...
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 datasheet.(That's
fine) My report also needs the number of records from the query. When I

use
"Count", I get the whole datasheet and not just the "sorted query".

Is there any way to get the number that I need?

Any help is appreciated. Thank you.

--
Sondra Wilson
###########
so******@online.no

A smile travels faster
than a virus.

Go to: http://www.mvps.org/access/
Best Regards
Petra Klatt (MVP)


Nov 12 '05 #4
I have a database that I have now made two queries to sort the data with two
different totals.(Example: Total classes - now sorted into finished and
waiting) At the bottom of my form I want three totals. Total classes(This is
fine-Count works) Total finished classes and Total waiting classes. I would
like to get the Total number from each Query for finished and waiting.(Count
does not work.) How?!?

--
Sondra Wilson
###########
so******@online.no

A smile travels faster
than a virus.

"Larry Linson" <la**********@ntpcug.org> wrote in message
news:fc**************************@posting.google.c om...
I'm a little confused as to what you have and where from this
question.

However, just guessing: perhaps you could use a DCount function as the
Control Source of a Calculated Control on your report to accomplish
your purpose?

Please follow up here in the newsgroup, not by e-mail. Thanks.

Larry Linson
Microsoft Access MVP

"Sondra Wilson" <so******@online.no> wrote in message

news:<L8********************@news2.e.nsc.no>...
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 datasheet.(That's fine) My report also needs the number of records from the query. When I use "Count", I get the whole datasheet and not just the "sorted query".

Is there any way to get the number that I need?

Any help is appreciated. Thank you.

Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Frnak McKenney | last post by:
Back when computer dinosaurs roamed the earth and the precursors to today's Internet were tiny flocks of TDMs living symbiotically with the silicon giants, tracking access to data processing...
0
by: david liu | last post by:
access 2000 query: here's what i want to do. from an asp page, perform a search on a table in access. i have used sql code in the asp page itself, but i'd rather execute a query in access. i...
4
by: Orion | last post by:
Hi, This is kind of last minute, I have a day and a half left to figure this out. I'm working on a project using ms-sqlserver. We are creating a ticket sales system, as part of the system, I...
11
by: Randy Weber | last post by:
I am getting unexpected results with a Like Query using ASP and an Access database. This query - SELECT PN, Qty From Inventory Where PN Like 'SSW-10%'; returns what I expect: PN ...
6
by: Stuart Clark | last post by:
Hiya I'm learning ASP using Access and Dreamweaver. I've just started simple and I've tried to make the db show the results of just two tables without doing anything clever! I have the following...
0
by: Mike Knight | last post by:
(I've also posted this problem on microsoft.public.excel.programming) I have a MS Access 2003 Database named "AS400 Fields.mdb". This database contains links to tables on an AS400. In MS...
6
by: InnoCreate | last post by:
Hi everyone. I've recently written a classic asp website which uses an MS Access datasource. I know this is less than an ideal data source as it has limited functionality. I have a search form on...
1
by: CJD | last post by:
Hi, I have a set of queries in access that I would like to import into excel. My problem is that there are no records are returned when the code is run, but I do get field names. This same code...
2
by: Marisol2 | last post by:
I have some queries in Access 2003 db that I have setup to display as pivots. I can go into design pivot table view and click on and then click on Export to Office MicroSoft Excel. The problem is I...
3
by: Kunal Desale | last post by:
Hello, I am migrating access queries to SQL Server 2005 Queries. My Access Query Is: SELECT qtrade.intordreftrim AS Expr1, qtrade.extordreftrim AS Expr2, qtrade.intinvreftrim AS Expr3,...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.