Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    davesaintjay is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2017
    Posts
    10

    Report not calculating profit total in footer

    Quote Originally Posted by aytee111 View Post
    Oh right - you can't refer to the name of a control, you must refer to fields on the record source. On your report footer you have copied the first two totals directly from the InvoiceID footer, you must do the same for the third field as well. Its control source must match the field on the invoice id footer.
    Ok great. I see what you're saying with regards to the control source etc and that I need to refer to the fields directly. But how would I perform this calculation as the orderoverheads and postagepaid only apply once for each invoice?



    If I use this in the report footer then it will Sum those 2 fields for every order line within every invoice which is fine for the first two fields but not orderoverheads and postage paid:-

    =Sum([transuk]-[productoverhead])-[orderoverheads]-[postagepaid]

    Many thanks

  2. #17
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Make a query that gives you the exact figure that you want. I don't know if your report is filtered, if it is the use the same criteria. Then in the control source of the field use dlookup: =DlookUp("calcfieldname","queryname","criteria(opt ional)")

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Using the 'Count' function in a totals query
    By sjs94704 in forum Access
    Replies: 1
    Last Post: 10-04-2014, 10:37 AM
  2. Replies: 3
    Last Post: 02-24-2014, 02:19 PM
  3. Update Query functioning in second attempt
    By drunkenneo in forum Programming
    Replies: 2
    Last Post: 11-18-2013, 05:12 AM
  4. Totals Query Record Count with Criteria
    By rmoreno in forum Queries
    Replies: 3
    Last Post: 06-07-2013, 09:16 AM
  5. Can I count Null values in a totals query?
    By bgephart in forum Queries
    Replies: 2
    Last Post: 08-29-2012, 10:13 AM

Tags for this Thread

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