Export to text file

Mr930

Well-known Member
Joined
Aug 31, 2006
Messages
585
I am trying to export the results of a query to a text file. I have a date field that is exporting the time as well, all being 00:00:00. Is there a way I can do the export and not have the time show up? When I run the query the time does not show up. I am on Access 2007.

thanks
Fred Emmerich
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
This is a common nuisance I deal with all the time. I use the FORMAT function in my query to change the value to text and only show the date portion. Then it exports as intended, i.e.:

MyDate: FORMAT([DateField],"mm/dd/yyyy")

You can also use the FORMAT function on numbers if you require an exact number of decimals in the exported value, i.e.

MyCost: FORMAT([ValueField],"0.00")
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top