Insert data into Access 2007 from C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zuraberadze
    New Member
    • May 2010
    • 7

    Insert data into Access 2007 from C#

    I can't connect C# to MS Access 2007 to insert data into DB. please help me. it can't see the type of db. thx
  • ThatThatGuy
    Recognized Expert Contributor
    • Jul 2009
    • 453

    #2
    Are you trying to connect to the newest form of access database that's

    .accdb

    Comment

    • zuraberadze
      New Member
      • May 2010
      • 7

      #3
      Originally posted by ThatThatGuy
      Are you trying to connect to the newest form of access database that's

      .accdb
      yes... and it can't see the db type.... with access 2003 no problem

      Comment

      • ThatThatGuy
        Recognized Expert Contributor
        • Jul 2009
        • 453

        #4
        it seems that you're system is lacking the driver required to access [Access 2007] databases....
        download it from here http://www.microsoft.com/downloads/d...displaylang=en

        and then set the provider to
        Code:
        Provider=Microsoft.ACE.OLEDB.12.0;
        in your connection string

        Comment

        • zuraberadze
          New Member
          • May 2010
          • 7

          #5
          thanck u very much! and can u tell how can I connect C# to database graphically?

          Comment

          • ThatThatGuy
            Recognized Expert Contributor
            • Jul 2009
            • 453

            #6
            Originally posted by zuraberadze
            thanck u very much! and can u tell how can I connect C# to database graphically?
            You can drop a oledbConnection in the form and select a new DataSource...

            Comment

            Working...