Example VB Script to show records like *AAA*

Glowackattack

Registered User.
Local time
Yesterday, 17:49
Joined
Feb 26, 2008
Messages
126
Hi,
i have a button that i want to open a form and only show records that have *AAA* in a certain field, and i cant get the wildcard characters to work...can someone post an example so i can see the syntax??

Thanks for the help.
 
What have you tried? You want "Like" rather than "=".
 
I'm looking for the VB syntax, I've tried a number of things

stLinkCriteria = "[Case Name]=" & "*"

stLinkCriteria = "[Case Name]=" & "'*'"

to start just to try to find the syntax.

Can i use "Like" in that Visual Basic statement??
 
Not only can you, but you must.

stLinkCriteria = "[Case Name] Like '*AAA*'"
 
Beautiful, thanks very much, thats exactly what i was looking for.
 

Users who are viewing this thread

Back
Top Bottom