F fredg Jan 15, 2004 #2 Hello How can I search for the value ) in my string Thanks Click to expand... It depends upon where and why? Like "*:*" will return all records that include the ":" anywhere in the field. or... InStr(1,[FieldName],":") If there is a ":" it will return it's first position within the string, or 0 if it there is none.
Hello How can I search for the value ) in my string Thanks Click to expand... It depends upon where and why? Like "*:*" will return all records that include the ":" anywhere in the field. or... InStr(1,[FieldName],":") If there is a ":" it will return it's first position within the string, or 0 if it there is none.
D Denny Jan 15, 2004 #3 Lookup InStr function If numb > 0 then : is not in the string, otherwise it gives you the position it is in the string. In my example you get 6, as the ':' is in the 6th position in the string. Dim intPosition As Integer intPosition = InStr(1, "Searc:hString", ":")
Lookup InStr function If numb > 0 then : is not in the string, otherwise it gives you the position it is in the string. In my example you get 6, as the ':' is in the 6th position in the string. Dim intPosition As Integer intPosition = InStr(1, "Searc:hString", ":")
D Denny Jan 15, 2004 #4 I think I put 'numb' in my first reply to your question. That was the original variable I used to test. Should read as intPosition. thanks
I think I put 'numb' in my first reply to your question. That was the original variable I used to test. Should read as intPosition. thanks
M Marshall Barton Jan 15, 2004 #5 Georges said: How can I search for the value ) in my string Click to expand... InStr(mystring, ":")