johannaellamay
Registered User.
- Local time
- Tomorrow, 03:53
- Joined
- Jul 19, 2014
- Messages
- 190
Hi! I have a continuous form based on a query for employees information. I already created a sort button with the following snippet for its macro:

I did that instead of choosing "Field List" and choosing the query for its data because I couldn't quite figure out how to replace my actual field names to the names I want (e.g. FirstName to First Name).
My sorting works fine. But when I try to use SetFilter, Access asks me to Set Parameter Value. This is my macro for my filter button (w/ a text box for entering filter data):

If you can't see the photo, here's what I wrote on the Where Condition:
What am I doing wrong? Please help.

I did that instead of choosing "Field List" and choosing the query for its data because I couldn't quite figure out how to replace my actual field names to the names I want (e.g. FirstName to First Name).
My sorting works fine. But when I try to use SetFilter, Access asks me to Set Parameter Value. This is my macro for my filter button (w/ a text box for entering filter data):

If you can't see the photo, here's what I wrote on the Where Condition:
Code:
="[" & [cboField] & "]Like'" & [txtFilter] & "*'"
What am I doing wrong? Please help.
