P
Paul Smith
I have established a connection to an Access DB on my hard drive, well at
least I think I have because a) the connection tested okay and b) when I
double click on a table in the Server Explorer window, the contents of the
table appears correctly.
However I am having a problem using that connection in my VB.net
application.
My Error:
The Microsoft Jet database engine cannot open the file 'C:\Documents and
Settings\PWS\My Documents\NewCDLData.mdb'. It is already opened exclusively
by another user, or you need permission to view its data.
I am following code from a book:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.load
OldDBDataAdapter1.Fill(DataSet1)
DataGrid1.DataSource = DataSet1
DataGrid1.DataBind()
End Sub
If it hels the Build fails on the First line of the procedure.
I realise this must be something simple as I have followed the instructions
froma book, but what is it??????
least I think I have because a) the connection tested okay and b) when I
double click on a table in the Server Explorer window, the contents of the
table appears correctly.
However I am having a problem using that connection in my VB.net
application.
My Error:
The Microsoft Jet database engine cannot open the file 'C:\Documents and
Settings\PWS\My Documents\NewCDLData.mdb'. It is already opened exclusively
by another user, or you need permission to view its data.
I am following code from a book:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.load
OldDBDataAdapter1.Fill(DataSet1)
DataGrid1.DataSource = DataSet1
DataGrid1.DataBind()
End Sub
If it hels the Build fails on the First line of the procedure.
I realise this must be something simple as I have followed the instructions
froma book, but what is it??????