C
Carlos
Hello,
I have a table R,
ID as number
T as text
| ID | T |
| 1 | A01 |
| 2 | CEE |
| 3 | Z33 |
if the two right characters is numeric return numeric value else the two
right characters , in this example
| ID | T |
| 1 | 1 |
| 2 | EE |
| 3 | 33 |
i try this query:
SELECT ID, IIF(IsError(Right(T,2) *1),Right(T,2) ,Right(T,2) *1) FROM R
and the query not trap the error, it is possible get this.
thank's
I have a table R,
ID as number
T as text
| ID | T |
| 1 | A01 |
| 2 | CEE |
| 3 | Z33 |
if the two right characters is numeric return numeric value else the two
right characters , in this example
| ID | T |
| 1 | 1 |
| 2 | EE |
| 3 | 33 |
i try this query:
SELECT ID, IIF(IsError(Right(T,2) *1),Right(T,2) ,Right(T,2) *1) FROM R
and the query not trap the error, it is possible get this.
thank's