473,396 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Report duplicates

bimos
11
Second issue of the day ...

I have a report submitted to a query
In the report I should have Company, many products, many dates and comments.
The problem is I always end up with duplicates.
Isn't there a way to "hide duplicates" for each group???
How can I solve this problem ???

Hope someone can spare 2 micro seconds for me!
Feb 20 '07 #1
7 1723
MMcCarthy
14,534 Expert Mod 8TB
Second issue of the day ...

I have a report submitted to a query
In the report I should have Company, many products, many dates and comments.
The problem is I always end up with duplicates.
Isn't there a way to "hide duplicates" for each group???
How can I solve this problem ???

Hope someone can spare 2 micro seconds for me!
I would need a lot more information. Can you post the query sql that the report is based on?

Mary
Feb 20 '07 #2
bimos
11
Sure here it is


Expand|Select|Wrap|Line Numbers
  1.  
  2. SELECT[List of Companies].[Company Name],[List of Products].Product, [Company Comments].[Date entered], [Company Comments].Comment
  3. FROM ([List of Products] INNER JOIN ([List of Companies] INNER JOIN [Company Demand] ON[List of Companies].[Company Key] = [Company Demand].[Company Key]) ON[List of Products].[Product Key] = [Company Demand].[Product Key]) INNER JOIN [Company Comments] ON[List of Companies].[Company Key] = [Company Comments].[Company Key]
  4. GROUP BY[List of Companies].[Company Name],[List of Products].Product, [Company Comments].[Date entered], [Company Comments].Comment
  5. HAVING ((([List of Companies].[Company Name])=[Forms]![Main Form]![compselect]));


thank you in advance!
Feb 20 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
Ok so company will have many products. In a report you will need to set the Company Name as a group header and put the date and comment in the footer of this header. You can see the multiple products per company in the detail section.

Mary
Feb 20 '07 #4
bimos
11
Thank you !


It works ok , the only problem now is that I can see only one comment or date!
Is this a grouping setting that I miss?


Alex
Feb 20 '07 #5
MMcCarthy
14,534 Expert Mod 8TB
Thank you !


It works ok , the only problem now is that I can see only one comment or date!
Is this a grouping setting that I miss?


Alex
Sorry Alex I didn't realise there was more than one.

You will have to do this with a subreport as there is no relationship between comments and products there is no way to group them.

Mary
Feb 20 '07 #6
bimos
11
I'll handle it from here!
Subreports are not cool but they do the job :)
Thanks for everything

Thank You!

PS if you need anything just PM :)
Feb 20 '07 #7
MMcCarthy
14,534 Expert Mod 8TB
I'll handle it from here!
Subreports are not cool but they do the job :)
Thanks for everything

Thank You!

PS if you need anything just PM :)
You're welcome!
Feb 21 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Benny Eckert | last post by:
Hi everyone, There's probably an easy solution to this little problem, but I can't find it: in the properties of my field, i selected hide duplicates 'yes'. As a (logical) result, i have a...
6
by: John | last post by:
Hi, I have simple database based on 3 tables. Relationship is 'one to many' between table 1 and 2, also between 2 and 3 table'one to many'. I have made form where I enter data in all 3 tables....
3
by: Randy Harris | last post by:
I can swear I saw an answer to this a while back but can't locate it. I need to pad lines on a report (print 20 lines, even if there are only 15 records - the last 5 lines blank). Any...
1
by: John | last post by:
I am printing a very basic report with a detail section from a query. When the detail prints out everything is duplicated. For example, if there should be two lines, there are four due to the...
5
by: David L. | last post by:
I'm running into a frustrating problem. ASP.NET 2.0 web application, against SQL'05, I'm trying to run a report against a 'table provider' (query) that excutes well within SQL MGT studio, and...
9
by: paul.jameson | last post by:
I have a simple Access database that stores Karaoke Songlists for my local pub. From this you are able to print out the song lists they use. Up until now, any duplicate songs that appear on say,...
3
by: peterkennett | last post by:
I have three tables, all linked. Table 1 "job" has an autonumber ID field. Table 2 "tasks" has a field that is linked to Table 3 "staff" has a field that also links to The purpose is to...
4
by: zufie | last post by:
I have a report that return all the records (materials ordered) by all callers each day. I want the report to just show all the records (materials ordered) by each individual caller each day on...
2
by: Steve | last post by:
I'm working on a report for an existing database. The report will be a directory of over 500 employees and thus multiple pages. What do I need to do to show the first employee and the last employee...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.