[ACCEPTED]-Find position of first occurrence of a substring in a string-vb.net
I think you are looking for InStr function, see: InStr at msdn
position = instr([stringField] & " ", " ")
Looking 4 for the first blank in what might be an 3 empty string named [stringField]. The ' & " "' avoids 2 an error situation where there are no blanks 1 in [stringField].
More Related questions