locked
Interop Access From C#.NET RRS feed

  • Question

  • User1630798415 posted

    Hi Guys,

     

    I have to read Access 2007 Database  tables from C#.NET. But i am not getting the way, how to open database and read the tables. 

    I have written some code as follows, it's not completed.

     

    using Access = Microsoft.Office.Interop.Access; 

    Access.Application acsApp;
    acsApp = new Access.ApplicationClass();

    acsApp.OpenCurrentDatabase("C:\\FileUpload\\D_Ans.accdb", true, null);
    Access.AllTables tabl;        

    acsApp.Quit(Access.AcQuitOption.acQuitSaveAll);
    releaseObject(acsApp);

    I am missing something here that need to activate something. Plz help me 

    Thanks

    Santosh

    Tuesday, July 13, 2010 5:21 AM

All replies