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!

From DB to excel using ASP - display probs 1

Status
Not open for further replies.

doorbreaker

Programmer
Nov 19, 2002
91
0
0
GB
Hi,

I've been asked to provide a CSV with a whole load of products, their prices and descriptions from our db.

After I've exported it using server.createobject ("scripting.filesystemobject") and try and open in excel the data is all over the place.

I am assuming this is because of line breaks and suchlike.

Does anyone know of anyway to clean up the data (its the description field) so that each product is displayed on just one line in the csv?

I have been using:

Description = replace(Description,"<br>","")

to remove certain html elements but the problem remains.

Thanks for any help or suggestion on this matter.

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top