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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 15, 2022, 8:00 AM EDT
Abhishek SinghRank #1,609 · 971 reputationPosted Mar 15, 2022, 3:33 PM EDT
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.
Rajeesh MenothRank #118 · 18.4K reputationPosted Mar 16, 2022, 5:15 AM EDT
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Mar 16, 2022, 5:30 AM EDT