I created a Text Field in a table and put this in one row:
asdl/as345
In the other rows, I didn't have any occurrences of "/".
Then I created a Query and put this in a new field in design view:
Code:
Search_String: IIf(InStr(1,[Test],"/")=0,[Test],Left([Test],(InStr(1,[Test],"/")-1)))
When I ran the query, it gave me "asdl" from the row with the ? in it - and all the other rows unchanged.
Hope this helps!
If you haven't used the IIf functoin, here's how it works (in this case):
IIf(InStr(1,[Test],"/")=0, [Test], Left([Test],(InStr(1,[Test],"/")-1)))
If there isn't a "/" then use the value in [Test] otherwise use All characters to the left of the "/"