IIF like query not liking it ...

S

Sue Compelling

Hi

ACCESS 2007

What's wrong with this query please? -

Type: IIf([location]="*internal*","Internal",[regions.region])

it's returning the region for all records even though there are ample
records with the location of "blah, blah internal blah, blah"

TIA
 
L

Lord Kelvan

try

Type: IIf([location] like "*internal*","Internal",[regions.region])

Regards
Kelvan
 
L

Lord Kelvan

basically if you want to use a wild card you need to use the word like
insted of = for future reference

Regards
Kelvan
 
S

Sue Compelling

Bow, bow -

Though not happy - I had tried the 'like' though obviously had an errant ","
perhaps or some such thing -

cheers ears
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top