Results 1 to 4 of 4
  1. #1
    funi.t is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    52

    Count fuction


    hi
    Is it possible to use the count function in access.for example if a certain shipping number appears more than once and i want my database to tell me how many times it appears

  2. #2
    pdebaets is offline Competent Performer
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    235
    Search Access help for the DCount function. Ex."

    dim i as integer
    i = Dcount("*","MyTable","ShippingNumber = 123") '* Counts the number of records with shipping number 123

  3. #3
    funi.t is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2011
    Posts
    52
    is it not possible for access to pick different numbers and compare them.I have over 30000 shipping numbers so i cannot do it manually?

  4. #4
    pdebaets is offline Competent Performer
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    235
    The following query will give you a count of the number of records for each ShippingNumber:

    Select ShippingNumber, Count(*) as RecCount from MyTable Group By ShippingNumber Order By ShippingNumber;

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

Similar Threads

  1. fuction elapsed time, expression builder
    By zac123 in forum Access
    Replies: 1
    Last Post: 08-05-2011, 02:21 PM
  2. Count on ID
    By dssrun in forum Access
    Replies: 4
    Last Post: 07-26-2011, 11:45 AM
  3. Sum the Count
    By Adele in forum Queries
    Replies: 5
    Last Post: 07-26-2011, 06:16 AM
  4. Count is off when using =Count
    By boywonder in forum Programming
    Replies: 3
    Last Post: 06-09-2011, 12:14 PM
  5. Count on a drop down box
    By baum12 in forum Access
    Replies: 2
    Last Post: 04-21-2011, 01:32 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