CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2008
    Posts
    10

    Could not find installable ISAM ???

    MSDN is not the best in explaining that type of error. I keep getting this. I looked if my Jet engines was installed correctly and everything looks fine in my registry.

    May be I am doing something wrong in my code ?

    Code:
            public const string DB_CONN_STRING =
              @"Provider=Microsoft.Jet.OLEDB.4.0;" +
              @" DataSource=D:\\Documents\\Visual Studio 2005\\Projects\\WindowsApplication2\\db_RFID_OIC.mdb";
    
    
    public void InsertDBLogTag()
            {
    
                    OleDbConnection conn = new OleDbConnection(DB_CONN_STRING);
                    conn.Open();
    
                    // SQL command
                    String sSQLCommand =
                    "INSERT INTO LogTag (Date, Puce, Cle_bureau, Cle_couloir, Cle_cargaison, Poids, Poste)  " +
                    "VALUES( '2001/12/25 20:30:15', '55', 1, 3, 2, 134, 1  );";
    
                    // Create the command object
                    OleDbCommand cmdAdder = new OleDbCommand(sSQLCommand, conn);
    
                    // Execute the SQL command
                    int nNoAdded = cmdAdder.ExecuteNonQuery();
     
                    // Close the connection
                    conn.Close();
    
    
            }
    The errors is when I open the connection (in the beginning), so I am wondering if my connection string is ok.

    thank you for helping me

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Could not find installable ISAM ???

    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Feb 2008
    Posts
    10

    Re: Could not find installable ISAM ???

    Quote Originally Posted by dglienna
    This article doesn't talk about my type of error and it's a beta network version, so it doesn,t work with what I am using

  4. #4
    Join Date
    Apr 2005
    Posts
    102

    Re: Could not find installable ISAM ???

    try separating DataSource into two words like Data Source.

  5. #5
    Join Date
    Feb 2008
    Posts
    10

    Re: Could not find installable ISAM ???

    Quote Originally Posted by superuser
    try separating DataSource into two words like Data Source.
    Thank You very much !

    Now it's work

    I have an error in my insert command, but I will figure it out. I belive my sql command error comes from the fact that I have a "auto increment" field as my primary on my table and I tought access would automaticly add it, looks like not. I will have to figure it out.

    Thank You !

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

Featured