0

Is there any possibilities to ask such a thing :

If me.cbo.Column(0) = "certain value containing let's say "ABC"" Then

So if there's 123ABC or ABC123 or even 123ABC123, then it will be valid ?

1
  • No, it won't since you require equal values. 123ABC does not equal ABC. Commented Nov 20, 2017 at 18:38

1 Answer 1

4

Instead of = "ABC" use Like "*ABC*"

If me.cbo.Column(0) Like "*ABC*" Then

The *'s act like wildcards.

Another option would be like this:

If Instr(me.cbo.Column(0), "ABC") > 0 Then
Sign up to request clarification or add additional context in comments.

1 Comment

If me.cbo.Column(0) = "ABC" Then Like this ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.