I am trying to export an Access 2010 query to a fixed width text file.
One of the fields in the table contains a phone number, and the data type is Text. The phone number field has custom formatting.
When I export the query to a fixed width text file, I lose the formatting.
For example, in the query, the number is listed as 212-212-2121, but in the export text file as 2122122121.
I have tried the following:
Add Format under field properties in the table's Design View.
Add Format for that field in the query properties.
Add formatting in the query as follows: PHONE: Format([PHONE1],"@@@-@@@-@@@@")
All of these display the number correctly in Access, but as soon as I export it, the formatting is gone.
Any suggestions?
Thank you.