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

Excel + ODBC

Status
Not open for further replies.

adac4u

Instructor
Sep 21, 2001
2
US
Hi,
In ODBC Admin, I can create a new ODBC Data Source Name using Microsoft Driver for Excel file.

How can I build a query to select data out from Excel ?
what is a column names ? table name in Excel ?

Thanx

Adac
 
I'm trying to do something similar (if not the same).

I'm writing an asp page that will pull information from an Excel spreadsheet, that has an assigned ODBC name. The range of data is called Courseware_Data. In this example-- [tt]request("incoming_database")[/tt] is set to the ODBC name of Courseware_Data_ODBC.

[tt]Set Conn = Server.CreateObject ("ADODB.Connection")
Conn.Open request("incoming_datasource") 'incoming database[/tt]

Then, I've got to write a SQL statement to pull info from here and add to the outgoing datasource.

I am stuck on how to refer to the "table" in the Excel spreadsheet. Will it be the same name as the ODBC (in my example: [tt]request("incoming_datasource")[/tt]) or will it be the name of the range of data (in my example: Courseware_Data)?

Thank you for your assistance!

PS: I think I just figured it out- it would be the range of data name? Please confirm!
happy.gif


-Steph
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top