Results 1 to 4 of 4
  1. #1
    tarhim47 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    57

    Report duplicating data

    Hi,

    I have a report which brings in data from two different tables. The report is showing data from the two tables but is duplicating data from one of the tables.

    How can I fix this?

    My dbase is attached. Please see "Lead Activity Report1" for reference.



    MANY THANKS!

  2. #2
    kennejd is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    188
    Use a union query to eliminate your duplicates. You're trying to join 2 many to many tables based on COI...and that's not going to give you unique records. It looks like you're trying to report based on COI...a union query will do what you want.

  3. #3
    tarhim47 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    57
    See below.
    Last edited by tarhim47; 05-03-2011 at 09:34 AM.

  4. #4
    tarhim47 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    57
    Hey Ken,

    Thanks for your help!

    My access knowledge is limited but I figured out the union query you were talking about. I made one using the help notes in Access and did exactly what they said but the union query doesnt combine all the result - just shows the results for the lead discussions with COIs.

    Here's what I did:

    I made a query for lead discussions with COIs
    - form: Lead Activity Report
    - fields: date of last contact, COI and comments - COI

    I then made a qury for general discussions with COIs
    - form: COI Discussion Form
    - fields: date, COI and general comments

    Fianlly, I created the union query in SQL view. See below.

    SELECT [Lead Activity Report].[Date of last contact], [Lead Activity Report].COI, [Lead Activity Report].[Comments - COI]
    FROM [Lead Activity Report]
    UNION ALL SELECT [COI Discussion Form].Date, [COI Discussion Form].COI, [COI Discussion Form].[Discussion points]
    FROM [COI Discussion Form];

    Any ideas?

    Thanks again for your help!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. De-duplicating new data
    By BassettProvidentia in forum Queries
    Replies: 7
    Last Post: 03-03-2011, 02:40 PM
  2. Duplicating numbers....why??
    By jgelpi16 in forum Programming
    Replies: 2
    Last Post: 01-21-2011, 01:32 PM
  3. labels duplicating themselves
    By RedGoneWILD in forum Forms
    Replies: 2
    Last Post: 08-17-2010, 07:42 AM
  4. Report duplicating itself many many times
    By TrudyD1474 in forum Reports
    Replies: 1
    Last Post: 06-24-2010, 11:59 AM
  5. Duplicating lines in an invoice report
    By GordonEdinburgh in forum Forms
    Replies: 0
    Last Post: 04-21-2007, 12:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums