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  

Graph Report



 
 
Thread Tools Display Modes
  #1  
Old August 17th, 2009, 10:09 PM posted to microsoft.public.access.reports
DawnP277
external usenet poster
 
Posts: 15
Default Graph Report

I am having a problem getting a graph to prompt for the parameters in the
query.

I wrote a query and put created the graph and everything is great. However
I am going to want to change the date range as time goes on.

It appears that the graph that I wrote from a wizard is not looking at my
query.

When I duplicate my graph with a paramter query when I change it to report
view it looks exactly like the design view my data is not coming across.

Does anyone have any suggestions.

Thank you Dawn
  #2  
Old August 18th, 2009, 04:37 AM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Graph Report

First, I don't think parameter prompts are ever good user interface. You
should use criteria from controls on forms.

You didn't share the Row Source of your graph. This is the one property that
effects the records displaying your graph.

--
Duane Hookom
Microsoft Access MVP


"DawnP277" wrote:

I am having a problem getting a graph to prompt for the parameters in the
query.

I wrote a query and put created the graph and everything is great. However
I am going to want to change the date range as time goes on.

It appears that the graph that I wrote from a wizard is not looking at my
query.

When I duplicate my graph with a paramter query when I change it to report
view it looks exactly like the design view my data is not coming across.

Does anyone have any suggestions.

Thank you Dawn

  #3  
Old August 18th, 2009, 06:07 PM posted to microsoft.public.access.reports
DawnP277
external usenet poster
 
Posts: 15
Default Graph Report

Duane, I agree, in the past I have used controls for the paramters.

My row source reads the following, (I used the graph wizard)
TRANSFORM Sum([CountOfSerialNum]) AS [SumOfCountOfSerialNum] SELECT
(Format([CDate],"WW 'YY")) FROM [Failed summary] GROUP BY
(Year([CDate])*CLng(54) + DatePart("ww",[CDate],0)-1),(Format([CDate],"WW
'YY")) PIVOT [Reason];

The query's SQL is as follows(name of query is Failed summary)
SELECT FinisherTable.CDate, FinisherTable.Crate, FinisherTable.Reason,
Count(FinisherTable.SerialNum) AS CountOfSerialNum
FROM FinisherTable
GROUP BY FinisherTable.CDate, FinisherTable.Crate, FinisherTable.Reason
HAVING (((FinisherTable.CDate) Between [forms]![Form1]![Text0] And
[forms]![Form1]![Text2]) AND ((FinisherTable.Crate)="FAILED"));


Do you know why it will not update from the query?

Thanks
Dawn

"Duane Hookom" wrote:

First, I don't think parameter prompts are ever good user interface. You
should use criteria from controls on forms.

You didn't share the Row Source of your graph. This is the one property that
effects the records displaying your graph.

--
Duane Hookom
Microsoft Access MVP


"DawnP277" wrote:

I am having a problem getting a graph to prompt for the parameters in the
query.

I wrote a query and put created the graph and everything is great. However
I am going to want to change the date range as time goes on.

It appears that the graph that I wrote from a wizard is not looking at my
query.

When I duplicate my graph with a paramter query when I change it to report
view it looks exactly like the design view my data is not coming across.

Does anyone have any suggestions.

Thank you Dawn

  #4  
Old August 19th, 2009, 05:20 AM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Graph Report

The row source is a crosstab so you must use Query-Parameters to add the
parameters and their data types:
[forms]![Form1]![Text0] DateTime
[forms]![Form1]![Text2] DateTime

BTW: name your controls "Text0"? Kick it up a notch...
--
Duane Hookom
Microsoft Access MVP


"DawnP277" wrote:

Duane, I agree, in the past I have used controls for the paramters.

My row source reads the following, (I used the graph wizard)
TRANSFORM Sum([CountOfSerialNum]) AS [SumOfCountOfSerialNum] SELECT
(Format([CDate],"WW 'YY")) FROM [Failed summary] GROUP BY
(Year([CDate])*CLng(54) + DatePart("ww",[CDate],0)-1),(Format([CDate],"WW
'YY")) PIVOT [Reason];

The query's SQL is as follows(name of query is Failed summary)
SELECT FinisherTable.CDate, FinisherTable.Crate, FinisherTable.Reason,
Count(FinisherTable.SerialNum) AS CountOfSerialNum
FROM FinisherTable
GROUP BY FinisherTable.CDate, FinisherTable.Crate, FinisherTable.Reason
HAVING (((FinisherTable.CDate) Between [forms]![Form1]![Text0] And
[forms]![Form1]![Text2]) AND ((FinisherTable.Crate)="FAILED"));


Do you know why it will not update from the query?

Thanks
Dawn

"Duane Hookom" wrote:

First, I don't think parameter prompts are ever good user interface. You
should use criteria from controls on forms.

You didn't share the Row Source of your graph. This is the one property that
effects the records displaying your graph.

--
Duane Hookom
Microsoft Access MVP


"DawnP277" wrote:

I am having a problem getting a graph to prompt for the parameters in the
query.

I wrote a query and put created the graph and everything is great. However
I am going to want to change the date range as time goes on.

It appears that the graph that I wrote from a wizard is not looking at my
query.

When I duplicate my graph with a paramter query when I change it to report
view it looks exactly like the design view my data is not coming across.

Does anyone have any suggestions.

Thank you Dawn

 




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 07:16 PM.


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