Results 1 to 3 of 3
  1. #1
    chuckles1066 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    4

    Grouping table values but keeping original field name?

    I will explain.......

    I have an automated procedure that appends records to a master table. This happens every night.

    The records won't change for maybe three months at a time.

    So what this means is that I'm appending the same 1,200 records every night for 90-odd days at a time. Then the records will change and the append now starts adding the new records.

    How do I extract the unique records into another table?

    In SQL I'd use DISTINCT.

    I know I can use the GROUP BY / SUM / COUNT functions in Access but this then means my new table has headings like SumOfInvoices, CountOfProducts etc.



    How do I consolidate all of the records AND keep the original field names?

    TIA.

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    In SQL I'd use DISTINCT.
    You can use it in Access too. After you create your query, just switch to SQL view, and add the word "DISTINCT" after "SELECT".

  3. #3
    chuckles1066 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    4
    Ahhh, thank you very much :-)

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

Similar Threads

  1. Replies: 5
    Last Post: 05-02-2012, 07:56 AM
  2. Replies: 4
    Last Post: 01-04-2012, 02:35 PM
  3. Keeping field contents if a source changes
    By gafferuk in forum Access
    Replies: 3
    Last Post: 12-28-2011, 05:39 AM
  4. keeping current entry in field until changed
    By Chazcoral in forum Forms
    Replies: 16
    Last Post: 09-09-2010, 12:01 PM
  5. Memo Field Not Keeping Data
    By maintt in forum Forms
    Replies: 1
    Last Post: 08-12-2010, 05:55 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