473,378 Members | 1,449 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,378 software developers and data experts.

In access I do not want to duplicate items on a report.

3
I am a karaoke DJ. I have over 50,000 songs in my database. I want to create a report to make a book listing all my songs for people to select a song to sing. Many of the songs are duplicated several times on my database. How do I make a report showing the Song Title only once and not all the duplicates?
Jul 26 '10 #1
6 1556
jimatqsi
1,271 Expert 1GB
It would be better if we could see the table or query that your report is based on. But in general, in the report's query, group results by Song title. That will produce only one entry in the data set for each song title.

If your data set includes some other value, like "album name", then you could get multiple listings if the song appears on multiple albums. The solution then could be to not include album name in your result set.

However, if the song is by more than one group, maybe you want that song appearing more than once, but not more than once for each song/artist combination.

It's difficult to give any definitive help without knowing more about the underlying tables/queries and your knowledge level.

Jim
Jul 26 '10 #2
Tim A
3
@jimatqsi
This is a sample of my table.
As you can see there are multiple songs on different discs with same and different artists.
Thanks Jim,
Rick

ID ARTIST TRACK DISC DISC#
57 10 Years Beautiful CB5123 01
58 10 Years Beautiful Cb30078 07
59 10 Years Wasteland SC8966 13
61 10,000 Maniacs More Than This Sc8390 06
63 10,000 Maniacs Trouble Me Sc8439 03
66 10Cc I'm Not In Love Sc8417 13
67 10Cc We Do For Love Sc8456 15
68 112 Come See Me Sc8357 10
69 112 Dance With Me Sc8726 09
70 112 Dance With Me CBEP473 3
71 112 It's Over Now Sc8672 15
72 112 Only You Sc8295 04
74 112 Peaches & Cream SGB0065 18
73 112 Peaches & Cream SGB65 18
75 112 Peaches And Cream Sc8702 02
Jul 26 '10 #3
jimatqsi
1,271 Expert 1GB
Expand|Select|Wrap|Line Numbers
  1. select Track from sometablename GROUP BY Track
will give you a list of all your track names once each

Expand|Select|Wrap|Line Numbers
  1. select Artist, Track from sometablename GROUP BY Artist, Track
  2.  
will give you a list of all your track names, once for each artist performing the track

Use one of these for your query underlying the Report.

Jim
Jul 26 '10 #4
NeoPa
32,556 Expert Mod 16PB
Using GROUP BY would certainly work, but I would suggest using the DISTINCT predicate of the SELECT clause.
Expand|Select|Wrap|Line Numbers
  1. SELECT DISTINCT Artist
  2.                ,Track
  3. FROM            YourTable
Another way to effect this is to enable Unique Values in the QueryDef's properties.
Jul 27 '10 #5
Tim A
3
@jimatqsi
THANKS,

WORKED GREAT!
Tim
Jul 27 '10 #6
jimatqsi
1,271 Expert 1GB
I'll have to try that Distinct Values thing. I'd like to compare performance results to what I have been doing.

Thanks for the tip,
Jim
Jul 27 '10 #7

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

Similar topics

1
by: pcb | last post by:
Hi All, I have a multi-select listbox, that can have duplicate items (i.e samples numbers that are analyzed in duplicate - the sample IDs are not the same, but these IDs are hidden from the...
10
by: Adam Clauss | last post by:
I have a page containing a list box. This list may contain duplicate items - in which the ORDER is important. ex: a b b a is significant as compared to: b
5
by: mamatha | last post by:
Hi I am developing a VB.NET application,in that application i have a listbox.When adding items to the listbox some duplicate items are added,how can i prevent listbox items from duplication.If...
4
by: Shi Mu | last post by:
I used the following method to remove duplicate items in a list and got confused by the error. >>> a , , ] >>> noDups='] ] Traceback (most recent call last): File "<interactive input>", line...
3
by: Jim McGivney | last post by:
In VWD I have an aspx page with a DropDownList control. The DropDownList is populated from a column from a table in an Access database. If there are duplicate values in the column they are added...
5
by: rick m | last post by:
We have a fairly good sized Access database that contains some info on the children our agency sees. We also have 40+ templates that require some info from the database be inputted into them, such...
1
by: rinku123 | last post by:
hi dear i want to Display report in Msword (.doc) can it possible. in vb6 i display some info in form using label controls. when i press report button it show in ms word file. if possible then...
4
by: ejack | last post by:
int total = static_cast<int>(vComp.size()) - 1; int tTotalUnits = 0; float tTotalCostJob = 0; int i = 0; int j = 0; int counter = 0; bool foundFlag; vector<string> vItems;...
7
by: cathy25 | last post by:
Hi, My requirement is to check for duplicate items in a list of 16 strings.They will be entered by users like this...Item1,Item2,Item3....Item16. I need to check for the repeated items if any exists...
4
by: rajesh kunwar | last post by:
how can retrive listbox1 to listbox2 without duplicate value
1
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...
0
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...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.