Results 1 to 3 of 3
  1. #1
    Hubler is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Posts
    5

    Totals not available

    I have a query that grabs the hours from a timecard of a specified employee from a specified date. There can be several cost codes or projects associated with that employee for that day and would like a sum of these hours. In the query I have the following expression:



    WEST: IIf([Date worked]=[Forms]![TS Review]![WeekEnding],[Timecard Details]![ST],"")

    The total is set to Group by. If I change it to Sum, It gives a message as being too complex. If I change it to expression it gives me a messaage "You tried to execute a query that does not include the specified expression WEST: IIf([Date worked]=[Forms]![TS Review]![WeekEnding],[Timecard Details]![ST],"") as part of an aggregate function"

    In the datasheet view when I use the toatls count is the only option available.

    Can someone please give me guidance on how to get the totals. Or if I am comming at this in completely the wrong angle. Tried doing with crosstabs but ran into snafus with multiple values and columns. Attached is a screenshot of what I am trying to accomplish.

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    If ST is a numeric value, you can't assign "" to it. Use 0 instead.

  3. #3
    Hubler is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Posts
    5

    Thank you Bob

    Thanks Bob, I substituted the "" with "null" and that allowed me to get my totals.

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

Similar Threads

  1. Replies: 5
    Last Post: 12-06-2011, 11:18 AM
  2. Totals Again
    By marksnwv in forum Reports
    Replies: 2
    Last Post: 08-05-2011, 12:17 PM
  3. Month totals and Year totals
    By marksnwv in forum Access
    Replies: 1
    Last Post: 08-05-2011, 10:13 AM
  4. Problems with totals
    By marksnwv in forum Queries
    Replies: 2
    Last Post: 06-27-2011, 09:44 PM
  5. Footer Totals
    By allenjasonbrown@gmail.com in forum Reports
    Replies: 3
    Last Post: 09-30-2010, 09:40 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