the following code is in two reports
If Forms![misc reports].chkSelectSection = -1 Then
Me.Filter = "unit = forms![misc reports].txtSection"
Me.FilterOn = True
Else
Me.FilterOn = False
End If
In one report, the filter allows only the selected section to print. In the other report, I receive the error
"The microsoft jet engine does not recognize 'forms![misc reports].txtSection' as a valid field name or expression".
If I manually enter the text value and turn on the filer it works. It just will not read it from the other form.
Any suggestions???
Thank you
If Forms![misc reports].chkSelectSection = -1 Then
Me.Filter = "unit = forms![misc reports].txtSection"
Me.FilterOn = True
Else
Me.FilterOn = False
End If
In one report, the filter allows only the selected section to print. In the other report, I receive the error
"The microsoft jet engine does not recognize 'forms![misc reports].txtSection' as a valid field name or expression".
If I manually enter the text value and turn on the filer it works. It just will not read it from the other form.
Any suggestions???
Thank you