Results 1 to 3 of 3

Thread: Grid question ****SOLVED****

  1. #1

    Thread Starter
    Lively Member WiseGuy's Avatar
    Join Date
    Apr 2002
    Location
    Zierikzee, The Netherlands
    Posts
    98

    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)

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    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

    BOFH Now, BOFH Past, Information on duplicates

    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...

  3. #3

    Thread Starter
    Lively Member WiseGuy's Avatar
    Join Date
    Apr 2002
    Location
    Zierikzee, The Netherlands
    Posts
    98
    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
  •  



Click Here to Expand Forum to Full Width