Results 1 to 2 of 2
  1. #1
    Astron2012 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    54

    Question Need help with totalling a field in Subform

    Hi,

    This should be really straightforward but for some reason I am experiencing a total nightmare with this!

    I have a form containing a subform (JobDetailsSub) set to Continuous forms. The subform is controlled by a query. The query contains some calculated fields. One field is HoursToday (a sum of 4 other fields). I want to total the HoursToday field in the footer of the main form. I have tried all options I can think of but still getting #error. I thought it should be as simple as =Sum( [JobDetailsSub].Form![HoursToday] ) but this is not working.

    I know you cannot sum a calculated field in a form but I thought as it was calculated in the query it would still work. Is this not the case?

    Please help!



    Many Thanks

  2. #2
    Astron2012 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2012
    Posts
    54

    Thumbs up

    Its OK, just been informed I should put the textbox in the subform footer not the mainform footer,

    Now works!

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

Similar Threads

  1. Totalling
    By cbrsix in forum Reports
    Replies: 17
    Last Post: 11-17-2011, 02:54 PM
  2. Replies: 5
    Last Post: 11-16-2011, 07:30 PM
  3. Totalling Time Values
    By l3111 in forum Access
    Replies: 2
    Last Post: 07-16-2011, 08:05 PM
  4. Replies: 7
    Last Post: 07-15-2011, 01:58 PM
  5. Replies: 5
    Last Post: 06-07-2010, 12:20 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