Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSV Files

Status
Not open for further replies.

aberry

MIS
Jun 6, 2002
24
0
0
Hi,

I am using VB to export records from a MySQL database to a CSV file so that the file can then be used in Excel in other parts of the business.

However, when I open the resultant file in Excel it translates the 02/1 text field to a date which I dont want it to do. I've tried with and without double quotes.

Anyone got any ideas?

Thanks,

Andrew
 
you can either format the destination column cells as Text before you import the file (Format>Cells)
OR
when exporting, add an ' before the data. Excel translates this as being a text field. eg '02/1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top