S
Screaming Eagles 101
Hi,
Using Visual Studio 2008:
I have a tableadapter in my dataset connecting to a table in Microsoft
Access Database,
which forces me to use the IIF statement rather than the CASE statement in
my query
which Access doesn't allow (unfortunately....)
Using this statement for example : Select IIF(true, 'yes', 'no') as Test,
etc.... from ....
works fine, as long as I don't use comparative signs as =, >, < ...
It seems like a boolean test is not allowed there .... :-( ?
So, if I'm writing
Select IIF(Column1 = 0 , 'yes', 'no') as Test, etc.... from ....
or
Select IIF(Column1 = 'some value' , 'yes', 'no') as Test, etc.... from ....
or
Select IIF(Column1 > 0 , 'yes', 'no') as Test, etc.... from ....
I'm putting myself in a freaky 'error' show, getting a message
"Error in list of function arguments: '=' not recognized. Unable to parse
query text."
How can I perform that boolean test in the Select statement with IIF,
and not getting the error from the Jet engine ?
--
Filip
http://www.ww2airborne.net/
Official Site of the 101st Airborne - 463rd PFA
skype: airborne463pfa-fiwi
[It's nice to be important, but it's more important to be nice!]
----------------------------------------------------------------
Using Visual Studio 2008:
I have a tableadapter in my dataset connecting to a table in Microsoft
Access Database,
which forces me to use the IIF statement rather than the CASE statement in
my query
which Access doesn't allow (unfortunately....)
Using this statement for example : Select IIF(true, 'yes', 'no') as Test,
etc.... from ....
works fine, as long as I don't use comparative signs as =, >, < ...
It seems like a boolean test is not allowed there .... :-( ?
So, if I'm writing
Select IIF(Column1 = 0 , 'yes', 'no') as Test, etc.... from ....
or
Select IIF(Column1 = 'some value' , 'yes', 'no') as Test, etc.... from ....
or
Select IIF(Column1 > 0 , 'yes', 'no') as Test, etc.... from ....
I'm putting myself in a freaky 'error' show, getting a message
"Error in list of function arguments: '=' not recognized. Unable to parse
query text."
How can I perform that boolean test in the Select statement with IIF,
and not getting the error from the Jet engine ?
--
Filip
http://www.ww2airborne.net/
Official Site of the 101st Airborne - 463rd PFA
skype: airborne463pfa-fiwi
[It's nice to be important, but it's more important to be nice!]
----------------------------------------------------------------