2017-06 is not a date, so _add_months() will not work with that as an argument.
Assuming your parameter is named ?yearmo?, your filter will look like this:
[code]
[year_date] between
cast(
year(
_add_months (
cast(?yearmo? + '-01', date),
-1...
Assuming your parameter is named ?yearmo?, your filter will look like this:
[code]
[year_date] between
cast(
year(
_add_months (
cast(?yearmo? + '-01', date),
-1...