How can I retain leading zeroes when saving as a CSV file?

G

Guest

I use a MS Query to pull address data from an ERP package. This data
includes a numeric “location codeâ€. These location codes are 4 digits, and
some have leading zeroes. I then take the resulting .xls spreadsheet, do
some subtle formatting, and then save as a .csv for uploading to a web
server. I need to retain the leading zeroes so that when data comes back to
the ERP from the web, the location code is four digits.

I’ve tried formatting the location code as text, in hopes that the
conversion to .csv will retain the zero. No luck.

Is there anything else I should try?
 
L

Lady Layla

Change file ext to txt from csv, then when you are using the import wizard,
format the column of data as text


: I use a MS Query to pull address data from an ERP package. This data
: includes a numeric â?olocation codeâ?. These location codes are 4 digits,
and
: some have leading zeroes. I then take the resulting .xls spreadsheet, do
: some subtle formatting, and then save as a .csv for uploading to a web
: server. I need to retain the leading zeroes so that when data comes back to
: the ERP from the web, the location code is four digits.
:
: Iâ?Tve tried formatting the location code as text, in hopes that the
: conversion to .csv will retain the zero. No luck.
:
: Is there anything else I should try?
:
 

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

Top