Results 1 to 7 of 7

Thread: Error trying to insert data to DB

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    10

    Exclamation Error trying to insert data to DB

    I application is using MS ACCESS 2007 for the database, and when I start the application from Visual Studio 2008 it works fine.

    After I create the setup file, and install the application and start the application from the setup file, it works fine too, and if I exit the application and go to start and click on the icon any time that the application Insert, delete or update to the DB it gives an error message.

    Here is my connection string.

    Code:
    OleDbConnection = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & Application.StartupPath & "\db1.accdb; Jet OLEDB:Database Password=ghhv;")
    The strange think is that after the setup is done and I start the application from the setup it works, and if I go to the start and click on the icon it doesn't.

    Any ideas.


    I attached the error msg.
    Attached Images Attached Images  

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