Re: SQL Question
From: Graham Mandeno (Graham.Mandeno_at_nomail.please)
Date: 02/23/04
- Next message: Graham Mandeno: "Re: Is there a better way?"
- Previous message: Junior: "SetFocus not working"
- In reply to: Dan M: "SQL Question"
- Next in thread: Dan M: "Re: SQL Question"
- Reply: Dan M: "Re: SQL Question"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 24 Feb 2004 09:36:39 +1300
Hi Dan
In this case you could use the Format property of the field, or of the
control on the form where it is displayed. Use the format:
;\X;'';
to display "X" if the field is True, otherwise blank.
-- Good Luck! Graham Mandeno [Access MVP] Auckland, New Zealand "Dan M" <dannerinoremove@aol.com> wrote in message news:1551301c3fa47$27a6a300$a501280a@phx.gbl... > 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.
- Next message: Graham Mandeno: "Re: Is there a better way?"
- Previous message: Junior: "SetFocus not working"
- In reply to: Dan M: "SQL Question"
- Next in thread: Dan M: "Re: SQL Question"
- Reply: Dan M: "Re: SQL Question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|