Select Case Text1
Case Text1.Length = 10 Or Text1.Length = 13
this above condition is not working..
Select Case Text1
Case Text1.Length = 10 Or Text1.Length = 13
this above condition is not working..
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Muhammad Imran AnsariPosted Mar 16, 2022, 9:30 AM
Rajeesh MenothPosted Mar 16, 2022, 9:15 AM
Abhishek SinghPosted Mar 15, 2022, 7:33 PM
above query can be resolved like this:
select case when Len(text1) = 10 or Len(text1) = 13 then "Select your output"
if you need nested case then try this(not 100% sure if it'll work )
select case when Len(texty1) =10 then
case when Len(text1) = 13 then "select your output"
you can also do it with if-else.
Jignesh KumarPosted Mar 15, 2022, 12:00 PM