Results 1 to 7 of 7

Thread: [RESOLVED] Error - Could not find installable ISAM.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2010
    Location
    Southeast Michigan
    Posts
    155

    Resolved [RESOLVED] Error - Could not find installable ISAM.

    I'm receiving the error - Could not find installable ISAM. at the line MyCommand.Fill(DT) in the following code.

    What is confusing to me is that I downloaded a sample project for reading data from an Excel workbook in the same way, written in C# that runs fine.

    Code:
        Private Sub exceldata()
            Dim filename As String = "C:\Documents and Settings\Dave\My Documents\Programming\Book1.xlsx"
    
            Dim MyCommand As OleDb.OleDbDataAdapter
            Using MyConnection As New OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;" &
                                                                 "Data Source=" & filename & ";" &
                                                                 "Extended Properties=Excel 12.0 Xml;" &
                                                                 "HDR=No;" &
                                                                 "IMEX=1")
                MyCommand = New OleDb.OleDbDataAdapter("select * from [Sheet1$]", MyConnection)
    
                Dim DT As New Data.DataTable
                MyCommand.Fill(DT)
                DataGridView1.DataSource = DT
            End Using
        End Sub
        Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    
        End Sub
    Dave

    Helpful information I've found here so far : The Definitive "Passing Data Between Forms" : Restrict TextBox to only certain characters, numeric or symbolic :
    .NET Regex Syntax (scripting) : .NET Regex Language Element : .NET Regex Class : Regular-Expressions.info
    Stuff I've learned here so far : Bing and Google are your friend. Trying to help others solve their problems is a great learning experience

  2. #2
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Error - Could not find installable ISAM.

    Install the latest version of MDAC setup and see if the problem goes away.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2010
    Location
    Southeast Michigan
    Posts
    155

    Re: Error - Could not find installable ISAM.

    I've got MDAC v2.81.1132.0 which I thought was the latest version. Also, is OleDB the usual way to read data from Excel?
    Dave

    Helpful information I've found here so far : The Definitive "Passing Data Between Forms" : Restrict TextBox to only certain characters, numeric or symbolic :
    .NET Regex Syntax (scripting) : .NET Regex Language Element : .NET Regex Class : Regular-Expressions.info
    Stuff I've learned here so far : Bing and Google are your friend. Trying to help others solve their problems is a great learning experience

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Error - Could not find installable ISAM.

    While that error is supposed to mean that the driver/provider isn't installed, it usually means is that something is wrong with your connection string. Check www.connectionstrings.com to see valid examples, you just need to change file names etc.

    Also, is OleDB the usual way to read data from Excel?
    It is one of the usual ways... the other is to automate Excel (as shown in the Office Development FAQs), but that requires Excel to be installed.

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Error - Could not find installable ISAM.


  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Mar 2010
    Location
    Southeast Michigan
    Posts
    155

    Re: Error - Could not find installable ISAM.

    Quote Originally Posted by si_the_geek View Post
    While that error is supposed to mean that the driver/provider isn't installed, it usually means is that something is wrong with your connection string. Check www.connectionstrings.com to see valid examples, you just need to change file names etc.

    It is one of the usual ways... the other is to automate Excel (as shown in the Office Development FAQs), but that requires Excel to be installed.
    Thank you. It was my connection string. The error led me off track in finding the trouble.

    I appreciate your help.
    Dave

    Helpful information I've found here so far : The Definitive "Passing Data Between Forms" : Restrict TextBox to only certain characters, numeric or symbolic :
    .NET Regex Syntax (scripting) : .NET Regex Language Element : .NET Regex Class : Regular-Expressions.info
    Stuff I've learned here so far : Bing and Google are your friend. Trying to help others solve their problems is a great learning experience

  7. #7
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Error - Could not find installable ISAM.

    No problem.

    As you now have it sorted out, could you please do us a little favour, and mark the thread as Resolved?
    (this saves time reading for those of us who like to answer questions, and also helps those who search to find answers)

    You can do it by clicking on "Thread tools" just above the first post in this thread, then "Mark thread resolved". (like various other features of this site, you need JavaScript enabled in your browser for this to work).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width