Looks like it's comparing strings, not numbers. If you want to do a one-time update to increase the number of digits, what about
UPDATE Invoices SET InvoiceID = MID(InvoiceID, 1, InStrRev(InvoiceID, "-")) & RIGHT("00000000" & MID(InvoiceID, InStrRev(InvoiceID, "-") + 1), 5)
where the last...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.