Results 1 to 4 of 4
  1. #1
    Bruce is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    72

    Count of records

    I have a main form that provides user controls. Within the main form I have a subform that displays a form/query result in worksheet mode that displays current active workorders. I want to put a text box on the main form that counts the total number of workorders (SID) displayed by the form/query. At this point I have a textbox and have set the control source to:



    =Count([Forms!Active_WorkOrders_Query!SID])

    but get a #error message, any ideas?

    Thanks

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    In situations such as this I tend to use the Current Event of the SubForm to get the RecordsetClone.RecordCount after doing a .MoveLast. Then place the value in a control of the SubForm Footer. The Footer will not show in DataSheet view and you can fetch it from the MainForm if you want.

  3. #3
    Bruce is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Nov 2009
    Posts
    72
    Heavy dude! I'll have to work on this one :-) Thanks!

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Post back here if you are still having problems.

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

Similar Threads

  1. Count and Sum in Report
    By Brian62 in forum Reports
    Replies: 3
    Last Post: 02-19-2010, 04:10 PM
  2. Count records issue
    By EstesExpress in forum Forms
    Replies: 1
    Last Post: 09-29-2009, 12:24 PM
  3. error in count
    By humpz in forum Reports
    Replies: 6
    Last Post: 08-13-2009, 08:20 AM
  4. Using count or Dcount
    By ddcook in forum Access
    Replies: 0
    Last Post: 07-22-2009, 03:35 PM
  5. how do i do a word count
    By clueless in forum Queries
    Replies: 0
    Last Post: 06-03-2009, 09:01 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