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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access using Microsoft Graph

Status
Not open for further replies.

LongYP

Programmer
Jul 23, 2003
3
GB
I have used the FILTER property on standard Access reports to limit the data displayed from a query. So far.. so good.

However, when using Micrsoft Graph embedded into an Access report I can not work out how to apply the filter to the graph.

Any help would be appreciated.

Many thanks
 
There are several ways to change the data displayed in the graph control:
-Change the SQL of the RowSource property of the control
-Use the Link Master/Child properties of the control
-Use a criteria in the Row Source property like:
Between Forms!frmA!txtStartDate and Forms!frmA!txtEndDate

You could possibly modify the Row Source to include the Filter property value of the main report.

Duane
MS Access MVP
 
Many thanks for the response.

I think changing the SQL of the row source will be my best bet. appending a nice 'WHERE' clause on the end.

Sorry to be dumb.

What would the syntax be to reference the Rowsource property of the graph control?

e.g forms!graphcontrol.rowsource?

Thanks
 
I assume your use of "forms!..." was a slip. In the On Format event of the section contain the graph control, you can use code like:
Me.GraphControl.RowSource = "Select.... WHERE...."

Duane
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top