Results 1 to 7 of 7
  1. #1
    humpz is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2009
    Posts
    13

    Question error in count

    hi all,



    i have trouble again with count in my drawing.
    i write this in expression builder for my pattern

    =sum(iif([status]="A" And [Remarks]="Drawing";1;0))

    that place that colored red is troubled
    access can't identify that
    when i open report always display confirmation about value of Remarks?
    what it mean?

    sorry if my explain is not clear
    thanks

  2. #2
    SoftwareMatters is offline Access VBA Developers
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    It probably means it can't find a field called remarks so it is asking for the value. I would check your field names.

  3. #3
    humpz is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2009
    Posts
    13
    thank's for your attention SoftwareMatters,,this is my form,i have already noticed what the problem is,,thats right i forget to insert remarks field
    but i have another problem,,i dont know how to sum [&total] in drawing report,,can you solve this problem?

  4. #4
    SoftwareMatters is offline Access VBA Developers
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    In the report footer create a new field and for its Control Source type:
    =sum([TotalFieldName])

    Hope this helps

  5. #5
    humpz is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2009
    Posts
    13
    i have do that but it noticed enter parameter "total" value,,"total" is total field name,,what the problem??

  6. #6
    SoftwareMatters is offline Access VBA Developers
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    It's because you are trying to sum a calculated field and Access can't keep up.

    To rectify this you need to do your total value in the query i.e. add a field to the recordsource behind the report that does your sum.

    Then bring the new field in to the report and replace the total field you have at the moment.

    Now in the report footer do your =sum([TotalFieldName]) and it should work.

  7. #7
    humpz is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2009
    Posts
    13
    finally my problem solved,,thank you very much software matters

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

Similar Threads

  1. count with conditional
    By humpz in forum Reports
    Replies: 3
    Last Post: 08-02-2009, 08:11 AM
  2. Using count or Dcount
    By ddcook in forum Access
    Replies: 0
    Last Post: 07-22-2009, 03:35 PM
  3. how do i do a word count
    By clueless in forum Queries
    Replies: 0
    Last Post: 06-03-2009, 09:01 PM
  4. Query using count function
    By wasim_sono in forum Queries
    Replies: 0
    Last Post: 11-28-2007, 03:16 AM
  5. Count and recount for every new user per day?
    By valkyry in forum Queries
    Replies: 0
    Last Post: 07-24-2006, 03:37 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