Guy Boswell
Registered User.
- Local time
- Today, 14:05
- Joined
- Jul 20, 2009
- Messages
- 26
This should be so simple but I can't work it out.
I want to add a paragraph to piece of text if some other information isn't already in the text. That is to say if the long string doesn't include string1 and the long string doesn't include string2 then add string3 to the end of the long string.
I thought it would be something like
If LongString <> "%String1%" And LongString <> "%String2%" Then
LongString = LongString & String3
End If
But that tags on String3 everytime, even if LongString includes String1 or String2
Maybe % isn't the wild card, I tried * as well. Or maybe my statement is fundementally flawed. Am I makin this much more complicated than it needs to be?
Is there a function, 'Does_this_text_include_those_other_texts'?
Can any of you good people please help?
I am using MS Access 2003 SP2 and MS Outlook 2003 SP2 in Windows 2000 Professional SP4 in an Agency network where everything is locked down and I can't generally get at any settings!
I want to add a paragraph to piece of text if some other information isn't already in the text. That is to say if the long string doesn't include string1 and the long string doesn't include string2 then add string3 to the end of the long string.
I thought it would be something like
If LongString <> "%String1%" And LongString <> "%String2%" Then
LongString = LongString & String3
End If
But that tags on String3 everytime, even if LongString includes String1 or String2
Maybe % isn't the wild card, I tried * as well. Or maybe my statement is fundementally flawed. Am I makin this much more complicated than it needs to be?
Is there a function, 'Does_this_text_include_those_other_texts'?
Can any of you good people please help?
I am using MS Access 2003 SP2 and MS Outlook 2003 SP2 in Windows 2000 Professional SP4 in an Agency network where everything is locked down and I can't generally get at any settings!