D
Dan M
Using Access XP project with SQL Server 2K data.
I need a way to manipulate the output of my queries and/or
SQL statements to display conditional output. In my
Access 97 Jet database, I could insert an IIF statement to
control output based on the result of a test condition.
XP adp files don't seem to have this ability.
As a SQL statement for a list box, this used to work:
SELECT EmployeeName, IIF([Terminated]=-1, 'X', '') As
Active FROM tblEmployees;
If I attempt to insert the IIF condition in the Access
QBE, it converts the whole thing to a literal string. If
I insert the above SQL string manually, it
returns "Invalid SQL Statement. Check the server filter..."
If the IIF statement is no longer available for
conditionally outputting information in a listbox column,
is there another way? And remember, this has nothing to
do with VBA, so SELECT CASE won't work.
I need a way to manipulate the output of my queries and/or
SQL statements to display conditional output. In my
Access 97 Jet database, I could insert an IIF statement to
control output based on the result of a test condition.
XP adp files don't seem to have this ability.
As a SQL statement for a list box, this used to work:
SELECT EmployeeName, IIF([Terminated]=-1, 'X', '') As
Active FROM tblEmployees;
If I attempt to insert the IIF condition in the Access
QBE, it converts the whole thing to a literal string. If
I insert the above SQL string manually, it
returns "Invalid SQL Statement. Check the server filter..."
If the IIF statement is no longer available for
conditionally outputting information in a listbox column,
is there another way? And remember, this has nothing to
do with VBA, so SELECT CASE won't work.