accesshelp1
Technical User
I have a query that shows IDs with a parenthesis and another ID. I only want the first ID and to remove the ID within the parenthesis.
For example an ID looks like this: 12345 (54321). I would like to have the data return 12345 and completely drop the parenthesis and everything that comes after it and I can't figure out how to do this.
The biggest challenge here is not all IDs are the same length so I can't just use a TRIM.
I tried Replace ( Replace(Replace([ID],"(",""),")","")) but that added a space in between the two IDs, meaning ONLY the parentheses was removed and the ID ended up looking like this 12345 54321.
Does anyone know how to remove everything that would come past the parenthesis?
Thanks
For example an ID looks like this: 12345 (54321). I would like to have the data return 12345 and completely drop the parenthesis and everything that comes after it and I can't figure out how to do this.
The biggest challenge here is not all IDs are the same length so I can't just use a TRIM.
I tried Replace ( Replace(Replace([ID],"(",""),")","")) but that added a space in between the two IDs, meaning ONLY the parentheses was removed and the ID ended up looking like this 12345 54321.
Does anyone know how to remove everything that would come past the parenthesis?
Thanks