I have a form with filter textbox. Filter works as a macro command "ApplyFilter" with following filter string:
[fullname] & [phoneNumber] Like '*' & [Forms]![frmTest]![frmFilter] & '*'
It works until I try to add VBA code to the form. Even if there is no code in VBA module I get "Enter parameter Value: [Forms]![frmTest]![frmFilter]" popup window when I try to apply filter.
If I set "HasModule" property of the form to "No" the filter works again.
It's not only just about filter or macro commands. It's the same with referencing form values in SQL queries like [Forms]![frmTest]![frmFilter]. It works without VBA module. It doesn't work if form has VBA module - "Enter parameter value" window appears.
What am I missing?