Solved

odbc select excel

Posted on 2008-06-26
1
774 Views
Last Modified: 2013-11-26
Yes I have a select query to select the sheet name, I was wondering is there anyway to select a sheet name dynamically, so the sheet name can be what ever but the select statement will still select that sheet name.
Dim MyConnection As System.Data.OleDb.OleDbConnection

        Dim sqlStr As String = "SELECT * FROM [030120080704$]", extendedString As String
 

        MyConnection = New System.Data.OleDb.OleDbConnection( _

              "provider=Microsoft.Jet.OLEDB.4.0; " & _

              "data source=C:\Excel\Grocery7-04-08.xls; " & _

Open in new window

0
Comment
Question by:sevensnake77
1 Comment
 
LVL 48

Accepted Solution

by:
jpaulino earned 500 total points
ID: 21876543
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This very simple solution applies to a narrow cross-section of the "needs to close" variety. In this case, the full message in Event Viewer was in applog, Event ID 1000: Faulting application iexplore.exe, version 8.0.6001.18702, faulting module …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now