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

    Help in creating an automated macro/query

    I have been working on excel and everything seemed to be working fine, until the amount of data that I need to process increased enormously.
    I have never used MS access but thought that it could help me to improve the processing time for dealing with the huge data.
    I have an excel sheet that has certain fields which i can import into the MS Access Table.


    The sheet has the following fields as columns:
    1) Name
    2) Age
    3) Address
    4) Maths
    5) Science
    6) English
    7) Spanish

    For the sake of simplicity, suppose there are 10 rows of data where in the names of the students may be duplicate.
    What I need to do is to find the unique names of the students and see how many times there name is appearing.
    For example, if Mark appears 4 times and julie appears 2 times and jack appears 4 times in the 10 rows, then I need to have a count 4 next to their names( next cell) so that I can create a graph.

    Mark 4
    Julie 2
    Jack 4

    This i will export to excel and create graph.
    I have a working model of this requirement in excel however, it crashes because of the amount of data.
    Requesting assistance to understand and complete task using MS Access.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    A fairly simple query:

    SELECT [Name], Count(*) As HowMany
    FROM TableName
    GROUP BY [Name]
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 5
    Last Post: 04-05-2014, 08:52 PM
  2. Replies: 3
    Last Post: 08-16-2012, 11:16 AM
  3. Replies: 1
    Last Post: 06-28-2012, 08:34 PM
  4. Creating Macro from Module
    By Harley Guy in forum Modules
    Replies: 1
    Last Post: 11-08-2010, 07:44 AM
  5. creating automated ticket number
    By speak2des in forum Access
    Replies: 1
    Last Post: 02-25-2010, 11:32 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