S
sudonim
Hello all, I have a update query that I would like to remove the last 6
characters from a string where the string contains UN#### with ####
being 4 numbers in a row. Not all of the fields contain this. The code
I have below is able to find the correct strings but it deletes
everything in the field. Is there someone out there than can help me to
fix this so it doesnt delete everything?
UPDATE ExportsUnprocessed SET Commodity =
Left("Commodity",InStr(1,"Commodity",-6))
WHERE (((Commodity) Like "*UN####"));
Thanks in advance!
characters from a string where the string contains UN#### with ####
being 4 numbers in a row. Not all of the fields contain this. The code
I have below is able to find the correct strings but it deletes
everything in the field. Is there someone out there than can help me to
fix this so it doesnt delete everything?
UPDATE ExportsUnprocessed SET Commodity =
Left("Commodity",InStr(1,"Commodity",-6))
WHERE (((Commodity) Like "*UN####"));
Thanks in advance!