crossy5575
Registered User.
- Local time
- Today, 02:22
- Joined
- Apr 21, 2015
- Messages
- 46
Another quick one!!!
I have a form with a combobox1 on it showing;
All
both UK & SA
UK
SA
USA
Other
This is populated by a table which has 4 columns; Id, text (from Above) country1, and country2
country1 and country2 are hidden but are shown on textbox1 and textbox2 (only to solve this problem As you cant call column(3) in a query criteria i need to work around.)
I need to filter a list of staff based on the dropdown box contents.
Thus filter on UK, SA, and USA (easy)
all (easy (*))
Both UK and SA - need help!!!!
the problem i face is that with only 255 charaters there is not enough space to do embedded if statements plus not sure how it will work.
so far i have thought that if i add a field and have an expression where
[country] Like ([Forms]![addpublic]![text2] Or ([Forms]![addpublic]![text2])) where the criteria is true
I should get a result, however because text 2 for all other criteria is blank it doesnt filter anything.
Im sure this is easy, just cant think around it.
I have a form with a combobox1 on it showing;
All
both UK & SA
UK
SA
USA
Other
This is populated by a table which has 4 columns; Id, text (from Above) country1, and country2
country1 and country2 are hidden but are shown on textbox1 and textbox2 (only to solve this problem As you cant call column(3) in a query criteria i need to work around.)
I need to filter a list of staff based on the dropdown box contents.
Thus filter on UK, SA, and USA (easy)
all (easy (*))
Both UK and SA - need help!!!!
the problem i face is that with only 255 charaters there is not enough space to do embedded if statements plus not sure how it will work.
so far i have thought that if i add a field and have an expression where
[country] Like ([Forms]![addpublic]![text2] Or ([Forms]![addpublic]![text2])) where the criteria is true
I should get a result, however because text 2 for all other criteria is blank it doesnt filter anything.
Im sure this is easy, just cant think around it.