AllExperts > Business Software 
Search      
Business Software
Volunteer
Answers to thousands of questions
 Home · More Business Software Questions · Answer Library  · Encyclopedia ·
More Business Software Answers
Question Library

Ask a question about Business Software
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Scottgem
Expertise
I can answer some questions on a wide variety of business applications, including MS Office, Lotus Smartsuite, Visio, Notes and many others.

Experience
I have over 16 years of experience as an IT professional, supporting a wide variety of business applications.

 
   

You are here:  Experts > Computing/Technology > Business Software > Business Software > Microsoft Access Find Duplicates Query

Business Software - Microsoft Access Find Duplicates Query


Expert: Scottgem - 10/30/2008

Question
QUESTION: Scott,
I send out an eNewsletter for my business and track what links my subscribers are clicking on by using a bulk e-mail vendor.  I'm building a database in Access that would neatly sum up each subscriber's "history."

I have our subscribers' profiles in one table and the past links they've clicked on in another.  Is there a way to run a query that will combine all of the duplicate profile info, sum total clicks, and ACCUMULATE all of the unique info (links & months).  Please see attached image; I've used Excel to illustrate my thoughts.  If this isn't possible, is there any other way you recommend I attack this task?  Thanks for your help!

Sincerely,
Ty
IMAGE: Remove Duplicate Information, Leave Unique

ANSWER: I'm not clear on what is duplicated. The links or what?

What you have is a classic relational setup with a one to many relationship. You create a query that joins the two tables on your subscriberID. You then use the report wizard to create a report that groups on subscriber and lists the links they've followed in the detail section.

Hope this helps,
Scott<>
Microsoft Access MVP 2007
Author: Microsoft Office Access 2007 VBA

---------- FOLLOW-UP ----------

QUESTION: Scott,
Thanks for your prompt response.  In the "Sample Click Data" table, a contact's email and name are duplicated because they've clicked on multiple links. If I create a query that joins the two tables by email address, this is what I receive (see new image).  I'm wondering if there is a way to sum up the number of a contact's total clicks, and also, "sum up" the links they've clicked on with the months they did it in.  For instance,  has 4 different records in the most recent image I've uploaded.  Is there a query I can run to "compress" his 4 records into 1 record (in other words, all of the websites he's clicks on would be in one field...or what I've attemped to illustrate in Subscriber History.xls in my first uploaded image)?

Sorry if I'm not explaining this clearly, but I truly do appreciate your help.  Let me know if you need further clarification. I don't know if what I'm trying to do is even possible in Access (without a report) so I'm just exploring my limitations.

Thanks!

Tyler

Answer
First, you can't do this in a query, but you CAN do it in a report as I outlined in my first response.

Second, in your click table, are you actually entering the e-mail and name data or is it being imported from info provided fromthe web site?

Hope this helps,
Scott<>
Microsoft Access MVP 2007
Author: MS Office Access 2007 VBA

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.