Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2009
    Posts
    1

    Dcount on report


    I have a report based on a query that requests two dates as criteria, start and end. THe query pulles records from my table that fall between those two dates.

    In my page header I have a textbox that I would like to count the number of records pulled by the query, but I don't want all of the records counted, just those matching another criteria, the control source for the text box is

    DCount("[Client]","QueryComplianceWeekly","[Subprocess] = 'Insufficiency Resolution' ")


    I have tried to use DCount to do this but I keep getting Error# as the result. Can anyone point me in the right direction for the correct syntax to do this?

  2. #2
    ansentry's Avatar
    ansentry is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    May 2009
    Location
    Melbourne, Australia
    Posts
    67
    In an unbound text box in the header put:

    Code:
    =Count([Client])
    That is assuming that the control "Client" will never be null.


    Regards,

    John A

  3. #3
    thhui is offline Competent Performer
    Windows XP Access 2002 (version 10.0)
    Join Date
    Feb 2009
    Posts
    235
    Just put a textbox in the form's header

    and set its control source equal to
    Code:
     
    =Count(*)

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

Similar Threads

  1. Replies: 1
    Last Post: 02-02-2009, 05:52 AM
  2. Replies: 0
    Last Post: 10-24-2008, 11:20 AM
  3. report prints blank page at end of report
    By darrellx in forum Forms
    Replies: 0
    Last Post: 03-14-2006, 08:51 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