A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sort Order



 
 
Thread Tools Display Modes
  #1  
Old May 18th, 2004, 07:07 PM
Mary
external usenet poster
 
Posts: n/a
Default Sort Order

My report contains the following columns:
Product (a text field with the product names)
Total Charges
Receipts
Percent of Collection

I developed this report through the wizard & specified
sums, their percentages, & in summary detail only.

Now, I need to have the report to be sorted by the
largest "Total Charges" amounts, and cannot use the
sorting/grouping order box due to the summary detail.

I think I need to use a macro, but have no clue what I'm
doing.

Please help.

Thank you
  #2  
Old May 18th, 2004, 10:41 PM
Duane Hookom
external usenet poster
 
Posts: n/a
Default Sort Order

You don't need a macro or any code. Create a totals query that groups by
product (or whatever) and totals the field value you need. Then add this
query to your report's record source and join the Product fields. Add you
total field to the report's records source so you can select it in the
sorting and grouping dialog.

--
Duane Hookom
MS Access MVP
--

"Mary" wrote in message
...
My report contains the following columns:
Product (a text field with the product names)
Total Charges
Receipts
Percent of Collection

I developed this report through the wizard & specified
sums, their percentages, & in summary detail only.

Now, I need to have the report to be sorted by the
largest "Total Charges" amounts, and cannot use the
sorting/grouping order box due to the summary detail.

I think I need to use a macro, but have no clue what I'm
doing.

Please help.

Thank you



  #3  
Old May 20th, 2004, 03:00 PM
Mary
external usenet poster
 
Posts: n/a
Default Sort Order

Thanks for the help.

-----Original Message-----
You don't need a macro or any code. Create a totals query

that groups by
product (or whatever) and totals the field value you

need. Then add this
query to your report's record source and join the Product

fields. Add you
total field to the report's records source so you can

select it in the
sorting and grouping dialog.

--
Duane Hookom
MS Access MVP
--

"Mary" wrote in

message
...
My report contains the following columns:
Product (a text field with the product names)
Total Charges
Receipts
Percent of Collection

I developed this report through the wizard & specified
sums, their percentages, & in summary detail only.

Now, I need to have the report to be sorted by the
largest "Total Charges" amounts, and cannot use the
sorting/grouping order box due to the summary detail.

I think I need to use a macro, but have no clue what I'm
doing.

Please help.

Thank you



.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:31 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.