I have a database that holds a field called PlayaName and in some instances someone input the players number after the name. So sample data would be
Code:
Joe Jones
Bob Bills No# 14
Halt Halfway No# 32
My desired output is
Code:
Joe Jones
Bob Bills
Halt Halfway
I tried this syntax, but access gives me an error of the expression you entered has an invalid string.. How should this syntax be written so that if the string contains NO#* then anything after it is stripped?
Code:
accuratename: Left(PlayaName, InStr(PlayaName, " (NO# - 1)))