Exporting Number w/fixed format in Access


I have a number field with fixed 4-digit format (0000). It lost all the leading zeros while exporting the data. How to keep all the leading 0s?

Thanks in advance.
Who is Participating?
Dale FyeConnect With a Mentor Commented:
"lost all the leading zeros while exporting the data"

exporting to what?

Best way is to use the Format() function to convert the number to a string:

Format([yourField, "0000")
mrongAuthor Commented:
export to txt file
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.