Results 1 to 6 of 6
  1. #1
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    409

    report - grouping vba

    hi, i have this report
    Click image for larger version. 

Name:	Immagine 2022-11-01 122714.png 
Views:	15 
Size:	53.1 KB 
ID:	49035



    as you can see, it has 3 grouping:
    1) the date (black part)
    2) the company left (the blue one§)
    3) the company of arrival (yellow).


    is there any way to change grouping, maybe using a listbox in which i can choose the grouping instances (eg just date, date and company of arriving etc etc)

    i think there is some vba stuff but i'm pretty ignorant about reports.

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    409
    thanks i found it, but i'm usure how to use

    maybe:

    Code:
    PrivateSub Report_Open(Cancel AsInteger)  Me.GroupLevel(0).ControlSource _  = Forms!SortForm!txtPromptYou EndSub
    this Forms!SortForm!txtPromptYou this is the control of ny report that will give the first grouping?

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    I have never grouped via VBA, so you will have to experiment and do further research.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  5. #5
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    409
    ok, 'ill show the result

  6. #6
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    4,914
    There has to be someone out there that has already done this, possibly for multi groups.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Grouping On Report
    By jo15765 in forum Reports
    Replies: 4
    Last Post: 05-14-2020, 07:16 PM
  2. Grouping in Report
    By New.Dimension6267 in forum Reports
    Replies: 1
    Last Post: 10-11-2013, 10:03 PM
  3. Grouping in a report
    By TrackStar in forum Reports
    Replies: 4
    Last Post: 11-02-2012, 01:44 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