Results 1 to 3 of 3
  1. #1
    jgelpi16 is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    544

    Question "Group By"

    Quick question...



    I have a table with 50,000 records in it. It was a linked table and one of the fields I needed to convert to numeric. So, I went ahead and put my "Val()" conversion formula in the necessary field. Initially I had made everything a "Group By" in the "total" field. I ran the query and I only received 48,000 records as the result. I took off the "Group By" and the query returned 50,000 records. I was under the impression the "Group By" did not consolidate records. I know this seems elementary, but never ran across something like this before.

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    of course it does! the statement is used most with aggregates, which of course are mathematical calculations. And of course math like that is not supposed to return every record, right?

    in scenarios like that, the group by clause it used to identify unique combinations, as those that result from the clause, and hence all of the extra records with those unique combination of values from the clause are not needed. Thus, suppressed from the result set.

    make sense?

  3. #3
    jgelpi16 is offline Expert
    Windows XP Access 2010 32bit
    Join Date
    Mar 2010
    Location
    Charlotte, NC
    Posts
    544
    Makes perfect sense. Thank you!

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

Similar Threads

  1. "Group By" causes "ODBC--Call Failed" error
    By kaledev in forum Queries
    Replies: 1
    Last Post: 03-09-2011, 02:43 PM
  2. Replies: 3
    Last Post: 04-10-2010, 10:22 AM
  3. aSTR = Dir("C:\*.*") >> "Type Mismatch"
    By JGrant in forum Programming
    Replies: 1
    Last Post: 03-28-2009, 05:17 AM
  4. Replies: 2
    Last Post: 08-31-2006, 12:19 PM
  5. "Count" and "Countif" in Reports
    By JMantei in forum Reports
    Replies: 1
    Last Post: 06-20-2006, 02:20 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