View Full Version : Using Like in Query Field name


mosh
08-04-2008, 01:58 AM
hi all,

I'm trying to create a field whereby IF the masterkey is Like Target, then "Target", else "not target".

But I can't seem to use the Like function in the field name and I get the error "You have entered a comma without a preceeding value or identifier".

here is what I have;

Expr1: IIf([MasterKey]= Like "*Target","Target","EPDQ")

I've highlighted the Like function because thats what it does'nt like. Can anyone help?

Thanks,
________
How to use soldering iron vaporizer (http://www.vaporizers.net/)

namliam
08-04-2008, 02:10 AM
Just like... not = like...

Expr1: IIf([MasterKey] Like "*Target","Target","EPDQ")

You can only use one method of comparison
>
<
<>
!=
Like
=
They are mutualy exclusive...

mosh
08-04-2008, 02:19 AM
Thanks Nam!
________
IOLITE PORTABLE (http://www.vaporizers.net/)