Results 1 to 4 of 4
  1. #1
    FJM is offline Competent Performer
    Windows 98/ME Access 2003
    Join Date
    Jun 2010
    Posts
    117

    Multi grouping on report

    I have a report which lists amonst other things has two product categories A and B and gives a grand total of all the value of these products.


    The query which runs the report has an expression which is (qty)*(value) to give the total value of each individual item
    I would like to show on the same single report a seperate total value for all A type products and all B type products
    Is this possible

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Sometimes I will use VBA and DAO in the Open event. With this, I can execute a Totals Query Object that does not conflict with the Report's Grouping. I can then pass the variable retrieved via DAO to a control in the Report.

  3. #3
    FJM is offline Competent Performer
    Windows 98/ME Access 2003
    Join Date
    Jun 2010
    Posts
    117
    My understanding of Acees is limited so I don't really understand your reply.
    Is it possible to offer a solution in simple terms ?

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by FJM View Post
    ...
    Is it possible to offer a solution in simple terms ?
    If it is not possible to get the desired results using the tools offered within the Report Designer (like grouping, sorting, and expressions in unbound textboxes), probably not. Have you tried creating an expression within an unbound text box control?

    Another approach might be using a subquery. If you create another query, using the Query Designer, you can add it to the original query, as a subquery. This may retrieve the data needed.

    If these approaches do not work, you would need to resort to using VBA code in the Report's Module. This is sometimes referred to as "code behind the report".

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

Similar Threads

  1. Report Grouping
    By mountaindo in forum Reports
    Replies: 7
    Last Post: 04-08-2014, 03:19 PM
  2. Grouping in a report
    By TrackStar in forum Reports
    Replies: 4
    Last Post: 11-02-2012, 01:44 PM
  3. Grouping in a report
    By YStein142 in forum Reports
    Replies: 3
    Last Post: 06-28-2012, 05:22 PM
  4. Report grouping
    By tarhim47 in forum Reports
    Replies: 1
    Last Post: 06-08-2011, 04:31 PM
  5. Grouping a report
    By JAJansenJr in forum Reports
    Replies: 0
    Last Post: 03-01-2011, 11:05 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