Re: LinkCriteria with AND
- From: "Dirk Goldgar" <dg@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 14 Feb 2008 13:55:48 -0500
"NetworkTrade" <NetworkTrade@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:7E319165-F171-451C-B0E9-598DC19F7BB2@xxxxxxxxxxxxxxxx
having a syntax brain freeze....
this works fine:
stLinkCriteria = "[ID]Not Like 'I*'"
All IDs show on the opening report - except those that start with an I
and now I need to make both Not Like I and Not Like G
so that all IDs show on opening report except those that start with I or G
I think I'm wrestling with the " symbol.....
You could do this:
stLinkCriteria = "[ID] Not Like 'I*' AND [ID] Not Like 'G*'"
Or, taking advantage of a different variation of the pattern-matching afforded by the Like operator, you could do this:
stLinkCriteria = "[ID] Like '[!IG]*'"
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
.
- Follow-Ups:
- Re: LinkCriteria with AND
- From: NetworkTrade
- Re: LinkCriteria with AND
- Prev by Date: Re: Survey Design
- Next by Date: Re: LinkCriteria with AND
- Previous by thread: capturing and setting screen resolution in VBA
- Next by thread: Re: LinkCriteria with AND
- Index(es):