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  

Chart help



 
 
Thread Tools Display Modes
  #1  
Old September 11th, 2009, 07:19 PM posted to microsoft.public.access.reports
Tara
external usenet poster
 
Posts: 269
Default Chart help

A while back, I posted a question about charts. After some help from others
users, I thought I had it figured out, but I don't. Here's what I need: A
chart that shows referrals to a specific program over the course of a year.
I can get the data to show up, but I can't get it to format correctly. For
instance, since there are 12 months in a year, the chart shows up 12 times -
once for each month. The charts each show all 12 months, so the additional,
unneeded 11 charts are just duplicates of the first. Also, I need the graph
to display as Jan, Feb, March, etc. However, if I use the month name rather
than the month number in the underlying query, the chart displays
alphabetically, not numerically. Here's the row source as it is now:

TRANSFORM Sum([CountOfProgram]) AS [SumOfCountOfProgram] SELECT
[ReferralMonth] FROM [tblReferralsTEMP] GROUP BY [ReferralMonth] PIVOT
[ReferralYear];

Any help is appreciated. I'm ready to scream...
  #2  
Old September 11th, 2009, 07:49 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Chart help

What are your chart's Link Master/Child properties? Can you link the chart
control to a month on your report? If you expect a different chart for each
month, you need to have each month in the record source of your report.

Your Row Source can sort by one column yet display another column. We don't
know what type of value is stored in ReferralMonth and if you can derive a
month name from it.
--
Duane Hookom
Microsoft Access MVP


"Tara" wrote:

A while back, I posted a question about charts. After some help from others
users, I thought I had it figured out, but I don't. Here's what I need: A
chart that shows referrals to a specific program over the course of a year.
I can get the data to show up, but I can't get it to format correctly. For
instance, since there are 12 months in a year, the chart shows up 12 times -
once for each month. The charts each show all 12 months, so the additional,
unneeded 11 charts are just duplicates of the first. Also, I need the graph
to display as Jan, Feb, March, etc. However, if I use the month name rather
than the month number in the underlying query, the chart displays
alphabetically, not numerically. Here's the row source as it is now:

TRANSFORM Sum([CountOfProgram]) AS [SumOfCountOfProgram] SELECT
[ReferralMonth] FROM [tblReferralsTEMP] GROUP BY [ReferralMonth] PIVOT
[ReferralYear];

Any help is appreciated. I'm ready to scream...

  #3  
Old September 11th, 2009, 08:16 PM posted to microsoft.public.access.reports
Tara
external usenet poster
 
Posts: 269
Default Chart help

Thanks for getting back to me Duane. I actually found a work-around for this
issue. I'm sure it's not the proper way to do it though and I'd really like
to understand graphs better, so I'll take whatever additional info you can
offer. The report itself was bound to the same table as the chart and the 2
were linked via the field ReferralMonth. I actually only had the report bound
due to needing to get an additional field (Year) to display. I couldn't get
it to become part of the chart since the chart was limiting me to 3 fields.
Binding the report itself was the cause of the 12 graphs. Makes sense once I
stopped and thought about it. Anyway, in oder to work around this, I went
back to my query and combined 2 fields - Program and Year so that my legend
would display both instead of just the Program name.

Does any of that make sense? I'm not sure why, but graphs have always made
my head spin...it's even worse when I try to explain my confusion to others.

"Duane Hookom" wrote:

What are your chart's Link Master/Child properties? Can you link the chart
control to a month on your report? If you expect a different chart for each
month, you need to have each month in the record source of your report.

Your Row Source can sort by one column yet display another column. We don't
know what type of value is stored in ReferralMonth and if you can derive a
month name from it.
--
Duane Hookom
Microsoft Access MVP


"Tara" wrote:

A while back, I posted a question about charts. After some help from others
users, I thought I had it figured out, but I don't. Here's what I need: A
chart that shows referrals to a specific program over the course of a year.
I can get the data to show up, but I can't get it to format correctly. For
instance, since there are 12 months in a year, the chart shows up 12 times -
once for each month. The charts each show all 12 months, so the additional,
unneeded 11 charts are just duplicates of the first. Also, I need the graph
to display as Jan, Feb, March, etc. However, if I use the month name rather
than the month number in the underlying query, the chart displays
alphabetically, not numerically. Here's the row source as it is now:

TRANSFORM Sum([CountOfProgram]) AS [SumOfCountOfProgram] SELECT
[ReferralMonth] FROM [tblReferralsTEMP] GROUP BY [ReferralMonth] PIVOT
[ReferralYear];

Any help is appreciated. I'm ready to scream...

  #4  
Old September 11th, 2009, 08:40 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Chart help

I mostly confused by what you have and what you want.

You can often think of a chart control in the same way you would a
subreport. The both
- have a record/row source,
- generally display values related to a value on the main report
- have link master/child properties
- don't need to display all fields from their source
- can sort on a field/column that isn't displayed
- values can be formatted in a lot of ways

--
Duane Hookom
Microsoft Access MVP


"Tara" wrote:

Thanks for getting back to me Duane. I actually found a work-around for this
issue. I'm sure it's not the proper way to do it though and I'd really like
to understand graphs better, so I'll take whatever additional info you can
offer. The report itself was bound to the same table as the chart and the 2
were linked via the field ReferralMonth. I actually only had the report bound
due to needing to get an additional field (Year) to display. I couldn't get
it to become part of the chart since the chart was limiting me to 3 fields.
Binding the report itself was the cause of the 12 graphs. Makes sense once I
stopped and thought about it. Anyway, in oder to work around this, I went
back to my query and combined 2 fields - Program and Year so that my legend
would display both instead of just the Program name.

Does any of that make sense? I'm not sure why, but graphs have always made
my head spin...it's even worse when I try to explain my confusion to others.

"Duane Hookom" wrote:

What are your chart's Link Master/Child properties? Can you link the chart
control to a month on your report? If you expect a different chart for each
month, you need to have each month in the record source of your report.

Your Row Source can sort by one column yet display another column. We don't
know what type of value is stored in ReferralMonth and if you can derive a
month name from it.
--
Duane Hookom
Microsoft Access MVP


"Tara" wrote:

A while back, I posted a question about charts. After some help from others
users, I thought I had it figured out, but I don't. Here's what I need: A
chart that shows referrals to a specific program over the course of a year.
I can get the data to show up, but I can't get it to format correctly. For
instance, since there are 12 months in a year, the chart shows up 12 times -
once for each month. The charts each show all 12 months, so the additional,
unneeded 11 charts are just duplicates of the first. Also, I need the graph
to display as Jan, Feb, March, etc. However, if I use the month name rather
than the month number in the underlying query, the chart displays
alphabetically, not numerically. Here's the row source as it is now:

TRANSFORM Sum([CountOfProgram]) AS [SumOfCountOfProgram] SELECT
[ReferralMonth] FROM [tblReferralsTEMP] GROUP BY [ReferralMonth] PIVOT
[ReferralYear];

Any help is appreciated. I'm ready to scream...

 




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:12 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.