Datagrid, 'Can't open database'
Hello
I am writing database application in ASP.Net, but l can the following error message when l try and run the program. I am loading a datagrid with the contents of the database
C:\Surgery.mdb. It is already opened by another user, or you need permission to view its data.
My code l am using is the following
Code:
daOwners.Fill(dsOwners) 'Fill the dataset with the contents of the database
grdOwners.DataSource = dsOwners 'Put the data from the dataSet into the datagrid
grdOwners.DataBind() 'Bind the contents
I get the error message on the first line "daOwners.Fill(dsOwners)"
Hope someone can help me
Many thanks in advance
Steve