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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open an Excel File using OLEDB with Formatting

Status
Not open for further replies.

vbkris

Programmer
Jan 20, 2003
5,994
IN
Hi Guys,

I am currently working on a "Bulk Upload" page that will read data from a manually prepared Excel file.

I was using the OLEDB approach till now for this.

However a new requirement has come up that will involve having an extra column in the excel sheet that has "HTML links" as its data.

The current code just returns the text of the link but not the actual link which i need.

Is there a way i can overcome this and still retain the OLEDB approach?

Krishnan

Known is handfull, Unknown is worldfull
 
oeldb treats the spreadsheet as a database table. if you need meta data about the field (in this case the link opposed to the text) then you need to treat the datasource as an excel workbook/worksheets and parse the data.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
hi,

i found a workaround for this :)

I added a hidden column in the Excel sheet and used a Macro in that sheet to extract the link out. So now i read this hidden column directly in my query and get the data out.

Krishnan

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top