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

Access Graph

Status
Not open for further replies.

auggy

MIS
Joined
Mar 1, 2002
Messages
1
Location
US
I am a beginner programmer and have created a report based on a query from two tables. Now I want to create a line graph from a different table but in the same report. I tried to use the insert a chart wizzard but with little success. The trouble is with the SQL created in the row source. Can anyone help me with the correct code (SQL) to have in the Row Source property. Here is my database structure:

Week # | MS Scrap Qty | Assembly Scrap Qty | etc...
___________________________________________________

1 | 13 | 25 | etc...

2 | 6 | 30 | etc...


I need to create a line graph like this.

|
| Y Axis
|Quantity Scrap
|
|
|
|
|___________________________________
Week 1 Week 2 Week 3
X Axis

Series data are the departments scrap qty: Machine Shop, Assembly, ect.

The SQL the wizzard put in the source box is:
TRANSFORM Count(*) AS [Count] SELECT [Week #] FROM [Graph Test] GROUP BY [Week #] PIVOT [Assembly];

This does not work.


Please Help!


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top