B
BirdByte
I run a query in Access for a report that has to be a comma delimited
text file. The text fields have to be in quotations, and the two date
fields have to be mm/dd/yyyy. When I run the query, the resulting table
is formatted correctly. However, when I export it to a text file, the
date fields are formatted as mm/dd/yyyy 00:00:00.
The underlying tables are formatted as short date, with a 99/99/9999;0;
mask (I tried all 0s in the mask as well). The query has been formatted
that same way, and also as Field1: format([BirthDate], "mm/dd/yyyy"). I
also tried Field1: format([BirthDate], "short date"). None of the
combinations held the date format when the file was exported.
Any ideas or workarounds to get rid of 00:00:00 in the text file will
be greatly appreciated. Thanks.
text file. The text fields have to be in quotations, and the two date
fields have to be mm/dd/yyyy. When I run the query, the resulting table
is formatted correctly. However, when I export it to a text file, the
date fields are formatted as mm/dd/yyyy 00:00:00.
The underlying tables are formatted as short date, with a 99/99/9999;0;
mask (I tried all 0s in the mask as well). The query has been formatted
that same way, and also as Field1: format([BirthDate], "mm/dd/yyyy"). I
also tried Field1: format([BirthDate], "short date"). None of the
combinations held the date format when the file was exported.
Any ideas or workarounds to get rid of 00:00:00 in the text file will
be greatly appreciated. Thanks.