Exporting Dates from Access to Text Files

G

Guest

I have a date I need to export as dd-mmm-yy (11-Nov-06). If I have the
column formatted in my query as dd-mmm-yy, the date shows ok in the query
window, and in the export window, but in the final fixed length text file, it
shows as 11/11/2006. I have even tried using a formula and converting the
date to a string, and that still displays ok in the query, but exports wrong.
Is there a way I can get this date format to export to a text file in the
proper format?

Thanks in advance.
 
K

Ken Snell \(MVP\)

Use a calculated field in the query in place of the date field; in that
calculated field, use the Format function to explicitly define how the date
value is to be exported:

SELECT FieldName1, FieldName2,
Format(DateFieldName, "dd-mmm-yy") AS TheDate
FROM TableName;
 

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