Solved

odbc select excel

Posted on 2008-06-26
1
770 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
Comment Utility
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

743 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

15 Experts available now in Live!

Get 1:1 Help Now