I've written a report that aggregates (avg, sum, count) a 10 or 15 measures
($, Days to Book, # rejects, %within SLA, etc.) I need to do a COUNT
DISTINCT on one control (D&B number) to determine how many distinct companies
I am dealing with in a particular country or region.
I've written a SQL subquery that does what I want it to do, but I can't
figure out how to imbed that statement into a control expression in a Report.
I prefer to work with the report engine because I need to take a number of
cuts on different groups and levels of detail and just find it easier to do
using Reports. It's working great except for this one control. Any thoughts?
Thanks, Jim
|
|
0
|
|
|
|
Reply
|
Utf
|
11/20/2009 9:41:02 PM |
|
You can't use a SQL statement or query name in the control source of a text
box. You might be able to use a domain aggregate function such as DLookup()
or DMax() or DSum().
It would help if we knew more about your tables and/or query.
--
Duane Hookom
Microsoft Access MVP
"Jim K" wrote:
> I've written a report that aggregates (avg, sum, count) a 10 or 15 measures
> ($, Days to Book, # rejects, %within SLA, etc.) I need to do a COUNT
> DISTINCT on one control (D&B number) to determine how many distinct companies
> I am dealing with in a particular country or region.
>
> I've written a SQL subquery that does what I want it to do, but I can't
> figure out how to imbed that statement into a control expression in a Report.
> I prefer to work with the report engine because I need to take a number of
> cuts on different groups and levels of detail and just find it easier to do
> using Reports. It's working great except for this one control. Any thoughts?
>
> Thanks, Jim
|
|
0
|
|
|
|
Reply
|
Utf
|
11/22/2009 8:04:01 PM
|
|
|
1 Replies
318 Views
(page loaded in 0.039 seconds)
Similiar Articles: Select Distinct subquery in a Report Control? - microsoft.public ...I've written a report that aggregates (avg, sum, count) a 10 or 15 measures ($, Days to Book, # rejects, %within SLA, etc.) I need to do a COUNT DISTINCT on one ... Select distinct based on a form control - microsoft.public.access ...I need to do a COUNT DISTINCT on one control (D ... SQL SELECT DISTINCT Statement The SQL SELECT ... combobox is based on a SELECT DISTINCT query, and I don't want to ... Report ... How to retrieve a distinct row using one column as criteria ...Select Distinct subquery in a Report Control? - microsoft.public ... How to retrieve a distinct row using one column as criteria ... Select Distinct subquery in a Report ... Help with counting distinct records! - microsoft.public.access ...Select Distinct subquery in a Report Control? - microsoft.public ... It would help if we knew more about your tables and ... I need to do a COUNT > DISTINCT on one control ... SELECT DISTINCT (multiple columns/tables) - microsoft.public ...SQL SELECT DISTINCT Statement The SQL SELECT DISTINCT Statement. In a table, some ... In Access, how do I join two tables into one report? - microsoft ... SELECT DISTINCT ... DCOUNT ( DISTINCT - microsoft.public.access.queriesYou are suggesting to use a subquery in the Criteria ... query, use it, and delete it when closing the report. ... this: =DCount([Task ID],[Tasks],"[Task ID] IN (SELECT DISTINCT ... Count distinct lines in a report - microsoft.public.access.reports ...Count distinct lines in a report - microsoft.public ... SELECT COUNT(DISTINCT column_name) FROM table_name ... DISTINCT COUNT vs. COUNT DISTINCT » Dave Turpin, SQL ... How to make select B subquery on select A? - microsoft.public ...FROM Inventory_Report AS R, Max_SKU_Dates AS L WHERE R.sku = L.sku AND R ... SQL server select distinct ... ... select query - sql select statement Structured Query Language ... select query including dates outside of specified range ...... select query including dates outside of specified range ... One criteria line doesn't "know" anything about ... Select Distinct subquery in a Report Control? - microsoft ... Coping Report - microsoft.public.greatplainsSelect Distinct subquery in a Report Control? - microsoft.public ... I've written a report that aggregates (avg, sum, count) a 10 or 15 measures ... on one control (D&B ... Select Distinct subquery in a Report Control? DataBaseI have written a report that aggregates (avg, sum, count) a 10 or 15 measures ($, Days to Book, # rejects, %within SLA, etc.) I need to do a COUNT DISTINCT on one ... Select Distinct subquery in a Report Control? - microsoft.public ...I've written a report that aggregates (avg, sum, count) a 10 or 15 measures ($, Days to Book, # rejects, %within SLA, etc.) I need to do a COUNT DISTINCT on one ... SQL SELECT DISTINCT StatementThe DISTINCT keyword can be used to return only distinct (different) values. SQL SELECT DISTINCT Syntax ... REPORT ERROR | HOME | TOP | PRINT | FORUM | ABOUT Report Model - SELECT DISTINCT - SQL Server forums: development ...3) Is there any way of extracting the sql from a report created with the report ... Conversation: Report Model - SELECT DISTINCT Subject: Report Model - SELECT DISTINCT How to Include Subqueries in an MS Access Report | eHow.comSubqueries are SQL (structured query language ... the layout, select a style for the report (e.g ... icon in the "Controls" panel, then click the place on your report (e.g ... 7/29/2012 10:37:18 PM
|