mloucel
Member
- Local time
- Today, 12:37
- Joined
- Aug 5, 2020
- Messages
- 181
Hello Gurus.
I spent a pretty bad time trying to figure out why a simple line of code like this:
did not produce any results, I spent a couple of hours looking online and I found out that sometimes you have to use "%" instead of "*", and believe my eyes it worked, the whole thing worked..
Now question WHY?
It doesn't make any sense, this comes from a routine to do a search on a cont form, a friend sent me.
Any Ideas WHY?
I spent a pretty bad time trying to figure out why a simple line of code like this:
Code:
Me.Filter = "[ItemCode] like '*" & Me.Search & "*'"
did not produce any results, I spent a couple of hours looking online and I found out that sometimes you have to use "%" instead of "*", and believe my eyes it worked, the whole thing worked..
Code:
Me.Filter = "[ItemCode] like '%" & Me.Search & "%'"
Now question WHY?
It doesn't make any sense, this comes from a routine to do a search on a cont form, a friend sent me.
Any Ideas WHY?