I have a query that I need to export as a fixed length flat file. I have chosen, TXT, CSV, and ASC output formats with the same odd result. My first column is a constant "222222". I have several date columns that I must format as 10 characters MM/DD/YYYY. When I look at the result of my query in datasheet view, everything looks fine. Then I do the following steps:
1. I choose, FILE>SAVE AS/EXPORT
2. I choose "To an External File or Database", click OK
3. I change "Save as type:" to "Text file (*txt,*csv,*tab,*asc)"
4. I type in file name: "OUTPUT.CSV" and click "Export"
5. I choose "Fixed Width"
At this point Access changes my data. My column that is supposed to be "222222" is now "22222" (quotes don't show up in the Sample export window) and my dates no longer look like "08/09/2000" but something like "03/0903/09". The output to the flat file is wrong too.
I get the same data change whether I use *txt or *asc
I am running Access97 on NT. The same thing happens in the same database on a Windows98 machine.
I sure hope someone recoginizes this anomaly and knows how to fix it.
Thanks in advance!
Ken
1. I choose, FILE>SAVE AS/EXPORT
2. I choose "To an External File or Database", click OK
3. I change "Save as type:" to "Text file (*txt,*csv,*tab,*asc)"
4. I type in file name: "OUTPUT.CSV" and click "Export"
5. I choose "Fixed Width"
At this point Access changes my data. My column that is supposed to be "222222" is now "22222" (quotes don't show up in the Sample export window) and my dates no longer look like "08/09/2000" but something like "03/0903/09". The output to the flat file is wrong too.
I get the same data change whether I use *txt or *asc
I am running Access97 on NT. The same thing happens in the same database on a Windows98 machine.
I sure hope someone recoginizes this anomaly and knows how to fix it.
Thanks in advance!
Ken