I need to us an IF Then statement to see if a memo field contains any or all combinations of certain strings. Now I can write a REALLY LONG If statement to include all my search strings like...
If (InStr(Me.Memo, "string 1") = 1) or (InStr(Me.Memo, "string 2") = 1) or (InStr(Me.Memo, "string 3") = 1)... and so on for however many more strings.
But I was wondering if there was an easier "shorter" way of doing so? Maybe sometihng with an array and/or loop? I should know this, but I'm a little rusty (and tired) at the moment. Any Suggestions?
If (InStr(Me.Memo, "string 1") = 1) or (InStr(Me.Memo, "string 2") = 1) or (InStr(Me.Memo, "string 3") = 1)... and so on for however many more strings.
But I was wondering if there was an easier "shorter" way of doing so? Maybe sometihng with an array and/or loop? I should know this, but I'm a little rusty (and tired) at the moment. Any Suggestions?