Hi everyone,
I need some help with a report I'm writing. The database is a hockey statistics database, and the report is based on a query that selects a certain group of players (qryActivePlayers). The controls on the report then calculate certain statistics, using data from another query (qryPlayerStats).
There are two criteria that are at the heart of my problem: "Season", which has values such as "1999-2000" and "2000-2001"; and "Game Type", which has three possibilities: "Regular", "Playoff", and "Tournament".
As it's currently written, I specify the criteria in qryPlayerStats, which means that each time I run the report, it runs for the same Season and Game Type, and in order to change those parameters, I have to change them within qryPlayerStats.
Obviously, what I'd like to have happen is that when I run the report, it asks me for the Season and the Game Type, so I could generate different reports ad hoc, such as "1999-2000 Playoff Stats" or "2000-2001 Tournament Stats".
I tried making Season into a parameter within the qryPlayer Stats by giving it a Criteria of [Season:], but the report doesn't prompt me to enter a value for that parameter. I think it's because qryPlayerStats isn't the main query that the report is based on, it's just referenced within the report controls.
Any ideas as to how I can make this work?
Thanks!
I need some help with a report I'm writing. The database is a hockey statistics database, and the report is based on a query that selects a certain group of players (qryActivePlayers). The controls on the report then calculate certain statistics, using data from another query (qryPlayerStats).
There are two criteria that are at the heart of my problem: "Season", which has values such as "1999-2000" and "2000-2001"; and "Game Type", which has three possibilities: "Regular", "Playoff", and "Tournament".
As it's currently written, I specify the criteria in qryPlayerStats, which means that each time I run the report, it runs for the same Season and Game Type, and in order to change those parameters, I have to change them within qryPlayerStats.
Obviously, what I'd like to have happen is that when I run the report, it asks me for the Season and the Game Type, so I could generate different reports ad hoc, such as "1999-2000 Playoff Stats" or "2000-2001 Tournament Stats".
I tried making Season into a parameter within the qryPlayer Stats by giving it a Criteria of [Season:], but the report doesn't prompt me to enter a value for that parameter. I think it's because qryPlayerStats isn't the main query that the report is based on, it's just referenced within the report controls.
Any ideas as to how I can make this work?
Thanks!