Switch Function

Tempest

New member
Local time
Today, 22:38
Joined
Jan 2, 2008
Messages
6
Hi All,

Some help from cyber space is what I need me thinks :confused:, I am using a switch function in an access query to convert 24 to 624 and 28 to 628 and so on for about 5 entires however there are numerous entries that might not meet my criteria that are errorrs can I just simply place in there a default option if the rest are not made like in a case statement.

I know somebody is going to suggestion placing this in a macor/function but would prefer to not have to do that if possible, but if I do I dot.

Any help greatly appreciated. Come on Cyber Space dont let me down! :D

Cheers,
Tempest
"Life is like a box of choclates you never know what your gonna get"
 
Try something like the following:

Switch([Num]=24,624, [Num]=26,626, [Num]=28,628, 111,999) +0


111 - an unlikely number in [Num]
999 - a default value
+0 - converts returned values to numeric
.
 

Users who are viewing this thread

Back
Top Bottom