Results 1 to 8 of 8
  1. #1
    stewegg is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Mar 2017
    Posts
    26

    Continuous form to show Unique records

    Is there a way to show unique records in continuous form?

    eg. Customers, Products, Orders

    Customer A
    placed Order #1; Order #2; Order #3
    All three orders have one same product (Product x)

    The form is to show what Customer A bought in the past using....
    Customer A main form (detail about customer A)
    with Product continuous subform that shows all products that were bought by customer A.
    Currently it's showing Product x three different times.


    Is there a way to show Product x just once in the continuous form?


    Thank you!
    Last edited by stewegg; 03-18-2017 at 11:50 AM.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Not if you want the records in the subform to be editable. You are describing aggregated data. This is really what reports are for.
    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
    stewegg is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Mar 2017
    Posts
    26
    If I don't want to be editable, what's the way to show unique data only?

    Thank you

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Bind the subform to an aggregate (GROUP BY) query. Use the TOTALS button from the Query Design tab. Basic Access functionality.
    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.

  5. #5
    stewegg is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Mar 2017
    Posts
    26
    Thank you very much for your help. It worked great!

  6. #6
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    Alternatively use

    SELECT DISTINCT

  7. #7
    stewegg is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Mar 2017
    Posts
    26
    How would I do that?
    Could you please provide some detail on it?

    Thank you

  8. #8
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    not sure who you are asking but for the distinct option you just add the word DISTINCT after the SELECT in your query in the SQL window. Or in the query design view, select properties and change unique values from no to yes.

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

Similar Threads

  1. Replies: 2
    Last Post: 08-03-2016, 11:29 AM
  2. Replies: 2
    Last Post: 10-23-2015, 02:38 PM
  3. Replies: 4
    Last Post: 11-21-2014, 09:56 PM
  4. Replies: 4
    Last Post: 04-03-2014, 08:03 AM
  5. Replies: 3
    Last Post: 12-04-2013, 08:14 AM

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