Hi,
Help needed with Switch function. Very much new to
MS_Access.
I've a column with datatype TEXT. It has got both numbers
and text in it.I want to select the values from that column
according to a condition.
If the column values are < 100 I want to append with 22- .
So it has to be like 22-99
22-98
22-97 and so on..
If the column values are > 100 I want to append with 33- .
So it has to be like 33-100
33-101
33-102 and so on..
If the column values are alpha or alphanumeric, I want to append with 22- . So it has to be like 22-YELLOW
22-RED13
22-GREEN14 and so on..
For this I used Switch function. But I dont know how to decode the alpha or alphanumeric values.
SELECT switch([table1.acctnum]<"100","22-"&table1.acctnum,
[table1.acctnum]>"100","33-"&table1.acctnum)
AS acctnum
FROM table1
Thanks much.
GR
Help needed with Switch function. Very much new to
MS_Access.
I've a column with datatype TEXT. It has got both numbers
and text in it.I want to select the values from that column
according to a condition.
If the column values are < 100 I want to append with 22- .
So it has to be like 22-99
22-98
22-97 and so on..
If the column values are > 100 I want to append with 33- .
So it has to be like 33-100
33-101
33-102 and so on..
If the column values are alpha or alphanumeric, I want to append with 22- . So it has to be like 22-YELLOW
22-RED13
22-GREEN14 and so on..
For this I used Switch function. But I dont know how to decode the alpha or alphanumeric values.
SELECT switch([table1.acctnum]<"100","22-"&table1.acctnum,
[table1.acctnum]>"100","33-"&table1.acctnum)
AS acctnum
FROM table1
Thanks much.
GR