Leading Zero's

G

Guest

I have an access database with a field called matter code that contains 5
digit numbers (text type). We have recently changed our time & billing
system to use 6 digit numbers. I changed the field size to 6, but I need to
now add a leading 0 to all existing 5 digit numbers. How can I accomplish
this? Thanks
 
F

fredg

I have an access database with a field called matter code that contains 5
digit numbers (text type). We have recently changed our time & billing
system to use 6 digit numbers. I changed the field size to 6, but I need to
now add a leading 0 to all existing 5 digit numbers. How can I accomplish
this? Thanks

Run an update query:

Update YourTable Set YourTable.[FieldName] =
Format([FieldName],"000000")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top