johandenver
Registered User.
- Local time
- Today, 23:07
- Joined
- May 4, 2010
- Messages
- 27
Hello!
I have a combo box containing names of certain US states.
When selecting a state in this box it filters results in another combo box using the selection as a criteria in a query.
My problem is that when selecting "kansas" I also get all results containing "arkansas".
I've tried using the following as criteria in my query:
Like "*" & " " & [Forms]![formname]![State_Combo] & "*"
The table has this format:
1st Kansas Infantry Regiment
1st Arkansas Infantry Regiment
1st Maine Infantry Regiment
etc. etc.
I'm supposing that I get all "arkansas" as well as "Kansas" is because I use the "*" wildcard but I really don't know how else to do it.
I have a combo box containing names of certain US states.
When selecting a state in this box it filters results in another combo box using the selection as a criteria in a query.
My problem is that when selecting "kansas" I also get all results containing "arkansas".
I've tried using the following as criteria in my query:
Like "*" & " " & [Forms]![formname]![State_Combo] & "*"
The table has this format:
1st Kansas Infantry Regiment
1st Arkansas Infantry Regiment
1st Maine Infantry Regiment
etc. etc.
I'm supposing that I get all "arkansas" as well as "Kansas" is because I use the "*" wildcard but I really don't know how else to do it.