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

Possible to use Excel files as datasources? 1

Status
Not open for further replies.

KCcasey

Programmer
Sep 30, 2003
69
NZ
Hi,

I'm hoping to import some data from a Excel workbook to use in a report I'm developing. Is it possible without creating custom extensions?

Thanks in advance!

Casey.
 
Do you want to:
A) Import the data into SQL Server and report off SQL Server.
B) Keep the data in the spreadsheet and report off the .xls file?

If you want choice B then try making a Data Source using the ODBC provider.
 
Ack!

I'd had been referencing the DSN unneccessarily in the 'source data' and the 'initial catalog' causing the connection string to fall over.

Ah, while I have your experience onhand, any pointers on how I would go about returning a recordset from from a specfic sheet / cell... ? Will RS accept VBA?

Many Thanks!

Casey
 
Sorted myself out!

(For posterity)

Syntax for referencing a specfic sheet:

SELECT * FROM [SheetName$]

Casey.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top