Hello! I've just started learning MS Access and I'm having trouble filtering data in column that sources options from the other table.
I wanted to create a simple search box in split form by using a macro that applies filter to data in specific column. The macro is activated by clicking on a button and sources search phrase from the text box next to it.
This is how it looks like:
[SPOILER]
[/SPOILER]
And this is the condition for the filter (Formularze -> Forms, Tekst82 -> name of the textbox):
Code:
[Target name] Like "*" & [Formularze]![Targets]![Tekst82] & "*" Or [Country] Like "*" & [Formularze]![Targets]![Tekst82] & "*" Or [Type] Like "*" & [Formularze]![Targets]![Tekst82] & "*"
Searching works perfectly for "Target name" which has text data type, but it doesn't work (after applying filter no records are shown) for "Country" or "Type" which source available options from other tables.
Could you help me solve this problem?