Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query to Report question

Status
Not open for further replies.

Hawkide

Technical User
Oct 8, 2003
159
0
0
US
I have a query that returns a count grouped by month. When I create a chart on a report, the order of the months are not Jan thru Dec. I would like my chart to display the months in sequetial order along the x-axis.
 
add:
Code:
ORDER BY Format ( tblX.FinishDate, "MM" )
to the end of your query.


Leslie
 
I already have that, but the query was returning the data sorted like :

August
December
July
October

(There are only 4 months with data)

I added and sorted on the following field:

intMonth: Month([tblX].[FinishDate]

As expected, the query returns data sorted as:

July
August
October
December

but the chart on the report still displays the x-axis as:

August
December
July
October

Charts do not seem too intuitive in Access 97. Any ideas???
 
Try this: in design view of the report, click Sorting and Grouping icon from tool bar, from there you can sort the field [FinishDate] either by asc or desc.
 
And usually avoid ORDER BY clause in the underlaying query of a Report with Sort/Group stuff.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top