Wich function do i use?

Hello all,

Im new to SPSS and i have a question about wich function i need to use. I have 3 variables in my SPSS: School year, year figure and attitude. I've done an one-way ANOVA to check if the three school years that i'm comparing are homogeneous (based on there year figure). Levene's test says they weren't homogeneous, while ANOVA tell's me they are. The Post Hoc that i've used (Games-Howell) showed me wich years were homogeneous and wich were not.

Now i want to check if the attitude of the students have anything to do with the reason that the year figures aren't homogeneous. Can somebody help me with how i need to do this?

Thank you for your help!