Results 1 to 2 of 2
  1. #1
    sguckemus is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    New York
    Posts
    1

    Counting Total Instances of Duplicate Fields

    Hi Folks,

    I am fairly new to access, so unsure if this belongs under queries or reports, so mods please feel free to move if necessary.

    I have a table containing records for our use of mobile computer labs. Each Records represents 1 use of the mobile computer lab (The Day it was used, what location it was used at, The Mobile Lab ID Number, What class it was used to train etc.)

    I am trying to create a report that will give me (preferably in the report footer) a count of how many times more than one mobile lab was out in the field on the same date. So for example:



    Click image for larger version. 

Name:	DB3.jpg 
Views:	11 
Size:	40.5 KB 
ID:	11839

    With the Above dataset, I'm looking for the count to return as "2", because there are 2 days on which more than one lab was depoyed in the field at the same time (1/1 and 3/14).

    Any help would be greatly appreciated,
    ~S

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    One way is to save an aggregate query:

    SELECT [Date], Count(LabID) As CountLab FROM tablename GROUP BY [Date];

    Then in textbox on report use DCount:

    =DCount("*","Query1","CountLab>1")

    Another option might be a subreport.

    Any filter criteria (such as date range) applied to the report will have to be applied to the query.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Counting Instances of a Number
    By SealM in forum Queries
    Replies: 9
    Last Post: 02-04-2013, 09:35 AM
  2. Counting number of instances by time of day
    By Abarency in forum Queries
    Replies: 1
    Last Post: 11-11-2012, 04:53 PM
  3. Counting instances across multiple tables
    By New_2_Access in forum Queries
    Replies: 1
    Last Post: 07-19-2012, 04:47 PM
  4. Replies: 6
    Last Post: 06-20-2012, 06:42 AM
  5. Counting Yes No Fields
    By pwilson in forum Queries
    Replies: 3
    Last Post: 11-29-2011, 10:29 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