I'm getting this exception after i've installed my app on one of my user's computers.
[System.nullrefernceexception: object reference not sset to an instance of an object at Microsoft.Office.Interop.Access.Applicationclass.openCurrentDatabase(string filepath,boolean exclusive, string bstr password)
at filed_Repair.Form1.Button27_Click(object.sender, EventArgs e)]
my code at Button27_Click is
Try
[Dim oAccess As Access.Application
oAccess=New Access.ApplicationClass
oAccess.OpenCurrentDatabase(Filepath:="C:\Databases\Field Repair Traveler.mdb", exclusive:=True)
oAccess.DoCmd.OpenReport(ReportName:="fr Date Range total", View:=Access.AcView.acViewPreview)
oAccess.Visible=True
Catch ex as Exception
Messagebox.show(ex.ToString)
End Try
I'm did this install on several computers and this one is the only which throws back this error.
[System.nullrefernceexception: object reference not sset to an instance of an object at Microsoft.Office.Interop.Access.Applicationclass.openCurrentDatabase(string filepath,boolean exclusive, string bstr password)
at filed_Repair.Form1.Button27_Click(object.sender, EventArgs e)]
my code at Button27_Click is
Try
[Dim oAccess As Access.Application
oAccess=New Access.ApplicationClass
oAccess.OpenCurrentDatabase(Filepath:="C:\Databases\Field Repair Traveler.mdb", exclusive:=True)
oAccess.DoCmd.OpenReport(ReportName:="fr Date Range total", View:=Access.AcView.acViewPreview)
oAccess.Visible=True
Catch ex as Exception
Messagebox.show(ex.ToString)
End Try
I'm did this install on several computers and this one is the only which throws back this error.