My contact has really old Access 2.0 database still in their production
use, and application which uses that is propably made by VB5 or VB6.
Now I should to do few SQL-queries and make charts according those
queries of this Access database with VB.NET. I tried to do it like this
way...
Dim strConnStr As String =
"Provider=Micro soft.Jet.OLEDB. 4.0;Data
Source=\\server name\thepath... \database.mdb;U ser Id=admin;Passwo rd=;"
Dim strSQL As String = "SELECT ..."
Dim da As OleDbDataAdapte r = New OleDbDataAdapte r(strSQL, strConnStr)
Dim dt As DataTable = New DataTable
da.Fill(dt)
da.Dispose()
da = Nothing
grid.DataSource = dt
....it's working, but causes share/locking problems error messages for
other users who are using that other application - so how to get SQL
SELECT-query without this kind of problem?
The one who has made that Access 2.0/VB5 or VB6-application no more
supports it, so they asked me to make other tiny application for their
new report needs.
--
Thanks in advance!
Mika
use, and application which uses that is propably made by VB5 or VB6.
Now I should to do few SQL-queries and make charts according those
queries of this Access database with VB.NET. I tried to do it like this
way...
Dim strConnStr As String =
"Provider=Micro soft.Jet.OLEDB. 4.0;Data
Source=\\server name\thepath... \database.mdb;U ser Id=admin;Passwo rd=;"
Dim strSQL As String = "SELECT ..."
Dim da As OleDbDataAdapte r = New OleDbDataAdapte r(strSQL, strConnStr)
Dim dt As DataTable = New DataTable
da.Fill(dt)
da.Dispose()
da = Nothing
grid.DataSource = dt
....it's working, but causes share/locking problems error messages for
other users who are using that other application - so how to get SQL
SELECT-query without this kind of problem?
The one who has made that Access 2.0/VB5 or VB6-application no more
supports it, so they asked me to make other tiny application for their
new report needs.
--
Thanks in advance!
Mika
Comment