Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / July 2005

Tip: Looking for answers? Try searching our database.

Grouping on Report

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
acon - 22 Jul 2005 23:31 GMT
I have a report that needs to be grouped but I don't want the same data
repeated constantly.  My report shows:
Date            Order#             Items
05/01          12345               aaaaa
05/01          12345               bbbbb
05/01          12345               cccccc
05/01          67890               aaaaa
05/01          67890               bbbbb
05/01          67890               ddddd
05/02          12345               xxxxxx
05/02          12345               yyyyyy

I would like my report to display like this:
Date            Order#             Items
05/01          12345               aaaaa
                                         bbbbb
                                         cccccc
05/01          67890               aaaaa
                                         bbbbb
                                         ddddd
05/02          12345               xxxxxx
                                         yyyyyy
Duane Hookom - 23 Jul 2005 01:26 GMT
Create a group heading on Date and Order#.  Place these two fields into the
group header. Add code to the On Format event of this group header:

   Me.MoveLayout = False

Signature

Duane Hookom
MS Access MVP

>I have a report that needs to be grouped but I don't want the same data
> repeated constantly.  My report shows:
[quoted text clipped - 18 lines]
> 05/02          12345               xxxxxx
>                                          yyyyyy
acon - 23 Jul 2005 02:44 GMT
I tried this and it says that the macro doesn't exist.  What would I need in
the macro?

> Create a group heading on Date and Order#.  Place these two fields into the
> group header. Add code to the On Format event of this group header:
[quoted text clipped - 23 lines]
> > 05/02          12345               xxxxxx
> >                                          yyyyyy
Rick Brandt - 23 Jul 2005 02:53 GMT
>I tried this and it says that the macro doesn't exist.  What would I need in
> the macro?

Sounds like you entered "Me.MoveLayout = False" directly in the OnFormat
property box.  That's not how event code works.  Only macro names and function
names can be entered there.

What you do for a code routine is enter "[Event Procedure]" (one of the drop
down choices) and then press the build [,,,] button to the right.  That will
take you to the VBA code editor window with the cursor positioned between the
pre-made lines that define the event code procedure.  Between those lines is
where you enter "Me.MoveLayout = False".

Signature

I don't check the Email account attached
to this message.     Send instead to...
RBrandt    at       Hunter      dot      com

Duane Hookom - 23 Jul 2005 04:13 GMT
Thanks Rick.

Signature

Duane Hookom
MS Access MVP

>>I tried this and it says that the macro doesn't exist.  What would I need
>>in
[quoted text clipped - 10 lines]
> procedure.  Between those lines is where you enter "Me.MoveLayout =
> False".
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.