Results 1 to 4 of 4
  1. #1
    Cined is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Apr 2010
    Posts
    9

    Count Field Values.

    Hello,



    I have to create a simple report, but have no clue how to do it.

    Basically I need to have one column in the Report containing different Vehicle types, which are values in a `Vehicle type` field (this part I can manage). The next column in the report needs to count how many records have that car type as it's value.

    The report should look something like this:

    Vehicle type | Number
    ---------------------------------
    Van | 5

    ...


    How would I achieve this?


    Thanks.

  2. #2
    Rixxe is offline Blessed Bear
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Location
    London (Essex ... yep!)
    Posts
    184
    Firstly you would need a query like this, to count the number of vans/cars etc etc

    Code:
    
    select a.vehicle,COUNT(a.vehicle)as number
    from TBLCarsNStuff as a
    group by a.vehicle
    And then google something like below to find out how to put it all into a report.
    I guess if you want it to update on a regular basis you might need to use some VBA code. (Not sure about that)

    http://www.ehow.com/how_7350951_add-...gn-access.html

  3. #3
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Rachel,

    I would suggest putting those eHow pages in your signature. You're always attaching them to the bottom of your posts, and I don't think anyone understands why you do it. I didn't for a while...

    Alot of them are a bit on the simple side too, which sometimes doesn't help people here. Just trying to help ya out! (especially if you are posting these responses remotely!)
    Quote Originally Posted by Rixxe View Post
    Firstly you would need a query like this, to count the number of vans/cars etc etc

    Code:
    
    select a.vehicle,COUNT(a.vehicle)as number
    from TBLCarsNStuff as a
    group by a.vehicle
    And then google something like below to find out how to put it all into a report.
    I guess if you want it to update on a regular basis you might need to use some VBA code. (Not sure about that)

    http://www.ehow.com/how_7350951_add-...gn-access.html

  4. #4
    Rixxe is offline Blessed Bear
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Location
    London (Essex ... yep!)
    Posts
    184
    Quote Originally Posted by ajetrumpet View Post
    Rachel,

    I would suggest putting those eHow pages in your signature. You're always attaching them to the bottom of your posts, and I don't think anyone understands why you do it. I didn't for a while...

    Alot of them are a bit on the simple side too, which sometimes doesn't help people here. Just trying to help ya out! (especially if you are posting these responses remotely!)
    Derek,

    I would suggest that perhaps you could troll some more if it pleases you...
    I think adding a link to a site which describes a solution to a problem in a SIMPLE way isnt a bad idea. 'Sometimes', so SOME people will find it useful, and some wont...

    Also your observation's are poor at best, it just so happens i might have used a similar link in a previous post (GOD FORBID!!!!!!!!!!!! Sense the sarcasm?)

    Next time, i agree, ill link a page which the OP will not understand, which will not help them with the required problem, but because its REALLY complex it's 'useful' right?

    Just trying to help ya out!

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

Similar Threads

  1. How to track/count the occurence of a particular field
    By jessica.ann.meade in forum Reports
    Replies: 4
    Last Post: 02-09-2011, 01:41 PM
  2. Showing Count in form field
    By randolphoralph in forum Forms
    Replies: 11
    Last Post: 05-17-2010, 03:52 PM
  3. Count of Unique Values
    By vsmk in forum Queries
    Replies: 2
    Last Post: 03-14-2010, 12:07 AM
  4. Replies: 2
    Last Post: 11-18-2009, 06:49 PM
  5. How to count charcter or text in field
    By nshaikh in forum Queries
    Replies: 3
    Last Post: 09-12-2008, 10:27 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