scottparks
IS-IT--Management
I need to fill in with lead zero's if the number is not 6 digits long. I am having trouble with doing this. SERIAL is the query field I want to have 6 digits. Below is the code to generate the correct numbers, just no leading zeros if less than 6 digits.
SELECT tblProductTicket.ProductCode, [N]+[BSerial] AS SERIAL
FROM tblIntegers4, tblProductTicket
WHERE ((([N]+[BSerial])<=[ESerial]))
ORDER BY [N]+[BSerial];
Any and all help would be appreciated.
Thank you.
SELECT tblProductTicket.ProductCode, [N]+[BSerial] AS SERIAL
FROM tblIntegers4, tblProductTicket
WHERE ((([N]+[BSerial])<=[ESerial]))
ORDER BY [N]+[BSerial];
Any and all help would be appreciated.
Thank you.