Hi ..
maybe someone can help. I need to pass a range of numbers (0 and 1) as a parameter to a query but I can't seem to get it to work.
If I pass just a single number 0 or 1 the query returns the expected result. but If I assign the parameter a range using the vba below the query ignores the second number. If I use quotes around the numbers the query seems to ignore the parameter altogether.
If [CT].Value = "I need this range" Then range.Value = "0,1"
then in my reports input parameters I reference the form
@CaseType int=Forms![RPT Pro-Search]!range
in my query criteria I have IN (@CaseType) against the field I need to look at.
can anyone suggest a possible solution? Many Thanks
maybe someone can help. I need to pass a range of numbers (0 and 1) as a parameter to a query but I can't seem to get it to work.
If I pass just a single number 0 or 1 the query returns the expected result. but If I assign the parameter a range using the vba below the query ignores the second number. If I use quotes around the numbers the query seems to ignore the parameter altogether.
If [CT].Value = "I need this range" Then range.Value = "0,1"
then in my reports input parameters I reference the form
@CaseType int=Forms![RPT Pro-Search]!range
in my query criteria I have IN (@CaseType) against the field I need to look at.
can anyone suggest a possible solution? Many Thanks