954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Date format in MS Office 2000

I'm unable to format the date fields when I export from Access 2000. I'm trying to generate a report that has to be comma delimited, strings in quotations, and date as mm/dd/yyyy. Everything looks the way it should until I export. I get mm/dd/yyyy 0:00:00 everytime.

There are several tables used in a query. The query results are saved in another table. I've tried formatting the date fields in the original tables, in the query design, and in the result table. I've tried the 'short date' format and mm/dd/yyyy in the tables, and Field1: format([date1], "mm/dd/yyyy"), Field1: left([date1], 10), and field1: format([date1], short date) in the query. All combinations return the time when I export to a text file.

The only time the zeros go away is when I export the date field as text, but then I get the quotation marks. Any ideas? Is there something I can do in Excel or a macro I can create that will format the fields as needed and generate a text file? Anything? Thanks in advance.

BirdByte
Newbie Poster
3 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

So, This isn't a Question about VB?

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

Yes, it is a question about vb. MS Office (Access databases in particular) can be used with VB 6.0. I was just looking for ideas. Sorry for bothering you.

So, This isn't a Question about VB?
BirdByte
Newbie Poster
3 posts since Apr 2006
Reputation Points: 10
Solved Threads: 0
 

No No, it's not a bother (I never intended for it to come across that way), the way the question was formed, and by your description, it seemed like more of an office issue, than a VB issue. I guess I'm not sure what you mean by "export", perhaps. So, in light of this new information, I'm going to guess that you have a VB app, that reads data from access, and puts it into excel?

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You