Hello,
I made a change to an Access file this way.
[CODE=vb]Dim myData As New DataSet()
'Dim mySelectQuery As String = _
'"SELECT * FROM D WHERE postoffice like ',MIHAI%'"
Dim myConnection As New OleDbConnection ( _
"Provider=Micro soft.Jet.OLEDB. 4.0;" & _
"Data Source=c:\mihai .mdb")
Dim strSelect As String = "update D set postoffice=RIGH T(postoffice,9) where postoffice not like ',MIHAI%'"
Dim dsCmd As New OleDbDataAdapte r(strSelect, myConnection)
dsCmd.Fill(myDa ta)
myConnection.Cl ose()[/CODE]
The execution is OK, but I also want that the file c:\mihai.mdb to be sorted ASC at postoffice column.
Thank you.
I made a change to an Access file this way.
[CODE=vb]Dim myData As New DataSet()
'Dim mySelectQuery As String = _
'"SELECT * FROM D WHERE postoffice like ',MIHAI%'"
Dim myConnection As New OleDbConnection ( _
"Provider=Micro soft.Jet.OLEDB. 4.0;" & _
"Data Source=c:\mihai .mdb")
Dim strSelect As String = "update D set postoffice=RIGH T(postoffice,9) where postoffice not like ',MIHAI%'"
Dim dsCmd As New OleDbDataAdapte r(strSelect, myConnection)
dsCmd.Fill(myDa ta)
myConnection.Cl ose()[/CODE]
The execution is OK, but I also want that the file c:\mihai.mdb to be sorted ASC at postoffice column.
Thank you.
Comment