Code:
SELECT Left([cust],InStr(1,[cust],"-")-1) AS custx, Val(Right(Trim([cust]),Len(Trim([cust]))-InStr(1,[cust],"-")+1)) AS Job
Above works IF there is a blank in byte 1, but NOT if byte 1 of field to be split is filled!
custx Job....... Cust
w x y 1.......... w x y-1
w x y -1...... w x y-1
Last edited: