Can someone point me to a thread that has code which will find a string anywhere in a field. For example, if I had a field with "AAAAAAAAAAAAAAAAAA jack aaaaaaaaaaaaaa", would Access or VB be able to find the "jack" in this field?
thx for any help
To find if a string exists anywhere is another string, use the Instr() function
If Instr(Me.Contents, "No Solution Yet") = 0 Then
strMsg = strMsg & "Do not forget to document ticket"
MsgBox strMsg, vbExclamation, "Invalid Data"
Me.cmdDocumentTicket.SetFocus
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.