Hi All,
I've been tasked with writing a report that shows just the account code of a customer who made a return. This usually isn't an issue, but the information provided, whilst in a SQL table in entered directly into from MS Access.
In this the user has used an expression to concatenate the account code, name and phone number, e,g, it looks like this..
CUSTOMER1,Customer Name 1, 01234 567 891
CUSTOMER2,Customer Name 2, 19876 543 210
NEWCUST1, New Customer 1, 07777 777 777
If the account code was standard length I could get away with a LEFT statement to provide me with the details of the code, but as it's variable 1-10 i need to get everything before the first comma.
Any ideas?