|
-
May 3rd, 2002, 02:25 AM
#1
Thread Starter
Lively Member
Grid question ****SOLVED****
Howdy Folks,
Here's the situation. I'm using an MSHFlexgrid to display some data from an Oracle DB. There's one column which only contains a 1 or a 0. But that's not what I want to see I want to see a Yes instead of a 1 and No instead of a 0.
Anyone knows how to change this withou changing the DB?
WiseGuy
p.s. I've asked this question before but didn't get a clear answer then.
Last edited by WiseGuy; May 3rd, 2002 at 02:57 AM.
I stuck my head out of the window and got arrested for mooning!
This Post is sponsored by my PC: PIII900, 512MBDimm/133, Seagate 40GB/7200 ATA100, LiteOn 12x DVD, Lite-On 32x12x40 CDrw, Elsa Geforce2 Ultra 64MB incl tv-out, SoundBlaster Live 1024, Ilyama A702HT Vision Master Pro410 17".
O/S: Windows XP Professional (dutch)
Internet: Cable (1Mbit connection)
-
May 3rd, 2002, 02:46 AM
#2
See if Oracle has IIF or similar function.
If so, just put something like :
IIF([tablename].[fieldname]=0,"No","Yes") As NewFieldname in the sql statement.
Vince
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
-
May 3rd, 2002, 02:56 AM
#3
Thread Starter
Lively Member
Well, I've found another SQL command that fits with Oracle, the other one was for Acces right?
Here's what I use now:
(Decode(Blokkeren,0,'Nee','Ja')) Blokkeren
Thanks for the help,
WiseGuy
I stuck my head out of the window and got arrested for mooning!
This Post is sponsored by my PC: PIII900, 512MBDimm/133, Seagate 40GB/7200 ATA100, LiteOn 12x DVD, Lite-On 32x12x40 CDrw, Elsa Geforce2 Ultra 64MB incl tv-out, SoundBlaster Live 1024, Ilyama A702HT Vision Master Pro410 17".
O/S: Windows XP Professional (dutch)
Internet: Cable (1Mbit connection)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|