Results 1 to 5 of 5
  1. #1
    aaslezak is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2015
    Posts
    34

    Getting a count of a certain type of entry

    I am trying to create a query where I would like to summarized it by the project number and then count the number of times a certain title appears on the table. When I do it this way it gives me no results?
    Attached Thumbnails Attached Thumbnails Sum of title type.JPG  

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    1. dont count TITLE , instead count ID.
    2. uncheck TITLE

    but you will need developer and estimate label
    so make it 2 queries. 1 only for developer, 1 for estimate.

    Batch: "Estimate"

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    SELECT "Estimate" AS Batch, Count(ID) AS CountOfID
    FROM Personell
    WHERE (((Title) Like "Estimate*"))

  4. #4
    aaslezak is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2015
    Posts
    34
    I need to have the total by project number because I need to find out which projects have both estimate and developer in the title because I need to remove the estimate from that record when I get a developer assigned on the report.

  5. #5
    aaslezak is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2015
    Posts
    34

    Figured it out with SQL

    I finally figured out how to get into the SQL view because I know that and I was able to write the query and then I converted it back to design view so the SQL looks like this:
    SELECT Personnel.[Project ID], Count(Personnel.Title) AS CountOfTitle INTO [AMA IT Count Developer Estimate]
    FROM Personnel
    WHERE (((Personnel.Title) Like "Estimate*" Or (Personnel.Title) Like "Developer"))
    GROUP BY Personnel.[Project ID];
    and the design view looks like this where I had to choose the title two times.

    To get to the SQL view right click the query tab and go to SQL view and start writing SQL and do the same to get back to design view.
    Attached Thumbnails Attached Thumbnails Using count and having selection criteria.JPG  

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

Similar Threads

  1. Replies: 4
    Last Post: 02-04-2014, 10:41 AM
  2. Replies: 4
    Last Post: 11-20-2013, 02:06 AM
  3. Replies: 4
    Last Post: 07-04-2013, 12:07 PM
  4. Count Records by Reject type on Max Date
    By crystal2000a in forum Access
    Replies: 2
    Last Post: 12-04-2012, 05:34 PM
  5. Replies: 9
    Last Post: 09-13-2012, 05:18 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