Results 1 to 4 of 4
  1. #1
    Pavilion is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    2

    merging repeated data on query

    Click image for larger version. 

Name:	Untitled.jpg 
Views:	7 
Size:	187.0 KB 
ID:	16683
    hey folks, I am new to Microsoft Access ...

    I used the many to many relationship to create this query. The patientinfo table is for personal information such as first & last name, date of birth, disease type, whether the patient is returning or not. The immunotable has what the patients are getting (type of therapy, date, whether they have switched to different formulation etc.) PatientAndTreatment is for linking the first two tables. When I was generating the query, I filtered out the people who are not returning back.



    As you can see in the picture, the first three rows are dedicated to a single patient who received the therapy three times(same case for the last three rows). Is there any way to eliminate the repeated data? I need to be able to assess out how many patients are returning and what kind of therapy each returning individuals has been getting. This query make it look like 6 patients are returning while only 2 patients are actually returning.

    thanks!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,628
    Build a report based on the query. Textbox property HideDuplicates should do what you want.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Pavilion is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    2
    sorry can you explain it in detail? What is texbos property hideduplicates??

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,628
    Create a report with the query as RecordSource. Bind textboxes to the fields. Select NameM textbox and look at the Property Sheet Format tab. The Hide Duplicates property is toward the bottom of the items. Set it to Yes

    Or use report Sorting & Grouping features.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Query Criteria for repeated Item
    By rashock in forum Access
    Replies: 3
    Last Post: 01-28-2014, 07:38 PM
  2. Merging duplicate data
    By spenco in forum Access
    Replies: 2
    Last Post: 12-02-2013, 05:30 PM
  3. Repeated Queries and updated data
    By jppevy in forum Access
    Replies: 1
    Last Post: 09-13-2013, 04:35 PM
  4. Merging data
    By jaZZerkill in forum Access
    Replies: 1
    Last Post: 04-09-2012, 08:43 AM
  5. Repeated rows in query-form
    By astraxan in forum Forms
    Replies: 2
    Last Post: 05-23-2010, 10:25 PM

Tags for this Thread

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