Results 1 to 2 of 2
  1. #1
    crimedog is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    141

    Count Records in Header

    In the past I created an Unbound Text box in the header of my continuous form. Added =Count([TicketID]) and it worked like a charm.


    Now I do the same thing and the Text box is blank.

    TicketID is the primary ket (autonumber) for my table.
    The form is based off a query that includes TicketID. and lists the records...
    Everything works great except the Count function that is in the form header.
    I have tried =Count([TicketID]) =Count(*) both return blank textbox

    I have tried =DCount("[TicketID]","[QueryName]") returns #error
    etc...

    This is all in the Control Source

    What could I possibly be doing wrong? It worked in my last DB - (same version Access 2010)

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Try

    =DCount("*","QueryName")

    in the Control Source.

    Linq ;0)>

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

Similar Threads

  1. Display a group count in the page header.
    By khughes46 in forum Reports
    Replies: 5
    Last Post: 10-03-2014, 07:34 AM
  2. Replies: 4
    Last Post: 03-29-2014, 01:29 AM
  3. Count unique customers in report header
    By hithere in forum Reports
    Replies: 7
    Last Post: 02-08-2013, 12:47 AM
  4. Replies: 1
    Last Post: 01-24-2013, 05:50 PM
  5. COUNT Group Count Records COUNT FUNCTION
    By PMCOFFEY in forum Access
    Replies: 9
    Last Post: 11-09-2012, 09:40 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