microsoft jet sql

M

Michelle

Does Access provide a function equivalent to
Oracle's "decode" function which you use like an
imbedded "if" statement in sql?
 
D

Dirk Goldgar

Michelle said:
Does Access provide a function equivalent to
Oracle's "decode" function which you use like an
imbedded "if" statement in sql?

I don't know what Oracle's Decode() function does, but from your
description I'd suggest you have a look at the IIf(), Switch(), and
Choose() functions.
 
M

Michelle

Thank you very much Dirk!

IIf() is reasonably like Decode (enoungh so as to solve my
current problem).

I tried to look up the Switch() function in Help but had
no luck. Is this version specific or does it require a
library or something?

Thanks again,
Michelle
 
D

Dirk Goldgar

Michelle said:
Thank you very much Dirk!

IIf() is reasonably like Decode (enoungh so as to solve my
current problem).

I tried to look up the Switch() function in Help but had
no luck. Is this version specific or does it require a
library or something?

No, it's been available at least since Access 97. However, you probably
won't find it unless you look at the VB help, by opening the help file
from the VB Editor.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top