Results 1 to 4 of 4
  1. #1
    ice051505 is offline Advanced Beginner
    Windows XP Access 2002
    Join Date
    Feb 2013
    Posts
    76

    grouping on form


    Hi all, I have a form and report, my report is grouping by using the access group and sort button, but I also want the information grouped on my form. It's any button on the design field that can help me to do this? Or any code I should use here? Please give me some help here, Thanks a lot!!!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Grouping is a report feature. On forms you can only sort. Sort with several fields can be defined in the form RecordSource or the SortBy property.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ice051505 is offline Advanced Beginner
    Windows XP Access 2002
    Join Date
    Feb 2013
    Posts
    76
    Thanks June7,

    Do you know how can I transfer the grouping feature to excel from a report that each worksheet only contain one group, which means multiple worksheet in one excel based on the different group?

    Quote Originally Posted by June7 View Post
    Grouping is a report feature. On forms you can only sort. Sort with several fields can be defined in the form RecordSource or the SortBy property.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Reports don't always export nicely, especially if there is grouping and/or subreports involved.

    What you want will require looping VBA code to open filtered query and export to worksheet. Exporting to new pages of existing or newly created workbook gets rather complicated.

    Exporting to Excel with VBA is a common topic. Search forum or Google. Here is a start: http://forums.aspfree.com/microsoft-...el-414974.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Grouping by certain qty.
    By reldridge in forum Queries
    Replies: 1
    Last Post: 12-03-2012, 03:41 PM
  2. Grouping
    By greg2725d in forum Reports
    Replies: 7
    Last Post: 09-29-2011, 10:00 AM
  3. Grouping
    By EricF in forum Reports
    Replies: 5
    Last Post: 07-18-2011, 03:58 PM
  4. Form Grouping
    By Desstro in forum Forms
    Replies: 12
    Last Post: 08-09-2010, 04:44 AM
  5. Grouping
    By dref in forum Reports
    Replies: 1
    Last Post: 01-16-2010, 08:30 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