Chart a row in a form instead of columns (1 Viewer)

Techie2k

Registered User.
Local time
Today, 20:13
Joined
May 5, 2009
Messages
12
Hi.

I'm a bit stuck on creating a chart in Access 2010. Not sure if I've set my table up right or not :confused:

Here's my table design


And the input form


My data is laid out like so


When I insert a chart though, I'm lost. It's like it's totally ignoring my data. The data isn't mine, it says east, north and west like a 'default preview chart'. The row source is
Code:
SELECT [student_id],Count(*) AS [Count] FROM [tblProgressLevels]   GROUP BY [student_id];
Which means nothing to me :banghead: I've managed to get most of the other stuff figured out, but these charts are confusing me.

Output?? :confused:


What I want it to do is show how the student is progressing but I've got it all back to front I think. How could I lay my data out so I have a single English column, a single maths and a single science and they still go up in terms like my form shows; they're all in the same table at the moment laid out the same way as I set up the English tracking.

I also just realised I'm trying to chart alphanumeric values :banghead: :banghead: stupid boy... Can Access do a conversion where I make a lookup table so that 1c = 1, 1b = 2, 1a = 3, 2c = 4, 2b = 5 etc. or would a query work? Just chucking out ideas now.

I don't mind using VBA, and can sort of figure things out but I'm not an advanced user so don't be afraid to talk in small steps - I won't be offended! :)

Many thanks folks, cheers for the assistance.

Chris
 

Attachments

  • InputForm.jpg
    InputForm.jpg
    36.1 KB · Views: 213
  • TableDesign.jpg
    TableDesign.jpg
    54.3 KB · Views: 409
  • TableData.jpg
    TableData.jpg
    60.5 KB · Views: 287
  • Chart.jpg
    Chart.jpg
    46.6 KB · Views: 209

JHB

Have been here a while
Local time
Today, 21:13
Joined
Jun 17, 2012
Messages
7,732
...
When I insert a chart though, I'm lost. It's like it's totally ignoring my data. The data isn't mine, it says east, north and west like a 'default preview chart'. ..
You've to view the report in "Print Preview" or "Report View" to show your data in the graph.
 

Techie2k

Registered User.
Local time
Today, 20:13
Joined
May 5, 2009
Messages
12
Conditional Formatting based on a Lookup Table

Hi all..

I've decided to abandon the line graph for the time being in favour of some coloured boxes. I've created a lookup table for the levels as it occurred to me I can't chart alphanumeric values.

So I've got my data in and displaying. I'd just like to format it like this



Here's a bit of psuedocode to try and illustrate what I'm trying to achieve.

Code:
[COLOR="SeaGreen"]# Lookup numerical equivalent of the score in the box[/COLOR]
LevelNumber = DLookup("lopLevelsValue", "tblLevelsofProgressLookup", "[lopLevel] = current progress level")

[COLOR="SeaGreen"]# Work out what colour to shade the box depending on how many levels the student has progressed.[/COLOR]
IF 'LevelNumber' = 3 > 'year 6 score' THEN
cell background = red
ELSEIF 'LevelNumber' = 6 > 'year 6 score' THEN
cell background = yellow
ELSEIF 'LevelNumber' = 9 > 'year 6 score' THEN
cell background = green
ELSEIF 'LevelNumber' = 12 > 'year 6 score' THEN
cell background = blue
END IF

Here's my setup - more or less the same as post one - but with a lookup table and form to display my table.



Basically as the child progresses their boxes colour code changes in the order red for 3 levels, yellow for 6, green when 9 levels have been passed and then blue for more than 12. All the levels are compared to the Year 6 level as this was their level when they started at secondary school and where we start tracking them from and the correct colour applied.

I'm thinking conditional formatting for each of the cells, but I'm not sure how to do that using a lookup table.

How do I get where I want :confused: Any help much appreciated :)

Thanks guys.

T2k
 

Attachments

  • Levels of Progress.jpg
    Levels of Progress.jpg
    94.9 KB · Views: 258
  • LevelsofProgress.jpg
    LevelsofProgress.jpg
    41.3 KB · Views: 251

Users who are viewing this thread

Top Bottom