Results 1 to 4 of 4
  1. #1
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544

    Need a fresh set of eyes please (Dcount issue)


    I am simply trying to count the number of records in a subform. I have =DCount("*","mechanicalinquired","referencenumber= " & [RererenceNumber]) and I've tried =DCount("*","mechanicalinquired","referencenumber= [RererenceNumber]") and about 100 other combinations. I get #ERROR# or #Name? in the field. Referencenumber is a number field. The dcount field is an unbound field (Text64), my table name is MechanicalInquired. What am I missing please??

    Thank you in advance!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    On the subForm ,put a text box on the footer.
    set it to a field, the alter it to =count(field)
    then you will have a count.

  3. #3
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544

    dcount issue

    Quote Originally Posted by ranman256 View Post
    On the subForm ,put a text box on the footer.
    set it to a field, the alter it to =count(field)
    then you will have a count.
    Thanks Ranman - but I still get #Error.??? I have triple checked field names, spelling, etc.

  4. #4
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    Nevermind...it's working now! UGH! Thank you much!

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

Similar Threads

  1. Replies: 2
    Last Post: 02-26-2014, 05:06 PM
  2. DCount issue
    By RobWulf in forum Queries
    Replies: 4
    Last Post: 05-21-2013, 04:07 PM
  3. Replies: 1
    Last Post: 05-18-2012, 11:59 AM
  4. form re-fresh
    By jscriptor09 in forum Programming
    Replies: 7
    Last Post: 10-28-2011, 12:22 PM
  5. VBA Excel Formatting: Need new eyes!!
    By Lorlai in forum Programming
    Replies: 3
    Last Post: 06-09-2011, 10:22 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