A
anil
Hi all
I am trying to filter the report based on the combo boxes in form,
using the following code
Me.Filter = "LocationName = " & LocationName & " AND " & "ParameterName
= " & _ ParameterName
DoCmd.OpenReport "rptResults", acViewPreview, , Me.Filter
but when I press the button and report opens it asks for the 'Enter
Parameter' both both fields.
Interesting thing is that it asks for 'VALUE' of location name e.g
"Ararat" and parameterName e.g "pH" instead of 'FIELDS' -LocationName
and ParameterName
when i open form next time with different LocationName and
ParameterName in combo box it again asks for that "VALUE" of
LcoationName and parameterName.
I have set filter = No in properties.Report is based on query and same
query I have used in form recordsource.
Since its asks for "Ararat" and not LocationName so I can't add it in
parameters.
Please help me where I am making the mistake
thanks
anil
I am trying to filter the report based on the combo boxes in form,
using the following code
Me.Filter = "LocationName = " & LocationName & " AND " & "ParameterName
= " & _ ParameterName
DoCmd.OpenReport "rptResults", acViewPreview, , Me.Filter
but when I press the button and report opens it asks for the 'Enter
Parameter' both both fields.
Interesting thing is that it asks for 'VALUE' of location name e.g
"Ararat" and parameterName e.g "pH" instead of 'FIELDS' -LocationName
and ParameterName
when i open form next time with different LocationName and
ParameterName in combo box it again asks for that "VALUE" of
LcoationName and parameterName.
I have set filter = No in properties.Report is based on query and same
query I have used in form recordsource.
Since its asks for "Ararat" and not LocationName so I can't add it in
parameters.
Please help me where I am making the mistake
thanks
anil