Avatar of Stefan Motz
Stefan Motz
Flag for United States of America

asked on 

Insert 0 in front of recordset when recordset is less than 6 characters

Hi Experts,
On my classic ASP page I'm displaying a record like this:
<%=rs("UserID")%>

UserID always has to be 6 characters, e.g. 123456
When it's less than 6 characters I would like to display zeroes in front of it, e.g. when UserID is 23456 I would like to display it as 023456
Thank you for your help
ASPVB Script

Avatar of undefined
Last Comment
Stefan Motz

8/22/2022 - Mon