Thanks .it works well but i have new problem
Hi,
Thanks .It works well now but facing new problem.
When i try to run the program it could not find the database application path and gives an error
the error is:
'System.runtime.interopservices.comException'occured in MArana form.exe
additional inforamtion for error is:
pl check the path name and spelled correctly.
the code:
Imports System.IO
Imports System.Reflection
Imports System.Windows.Forms.Application
Imports System.Runtime.InteropServices.COMException
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim mAppPath As String
mAppPath = System.Reflection.Assembly.GetExecutingAssembly.Location
Dim Conn As ADODB.Connection
Dim objword As Word.Application
Conn = New ADODB.Connection()
Conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & mAppPath & "\testdb.mdb;Mode=Share Deny None"
Conn.Open()
thanks