cesarfrancisco
Active member
- Joined
- Apr 3, 2007
- Messages
- 33
- Programming Experience
- Beginner
VB.NET:
Dim myConn As New OleDbConnection
myConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\..\DB.mdb;Jet OLEDB:Engine Type=5"
myConn.Open()
Dim myCMD As New OleDbCommand
[COLOR=blue]myCMD.CommandText = "Select * from Table1 where FN LIKE '" & FNTextBox.Text & "%'"[/COLOR]
myCMD.Connection = myConn
Dim myAdapter As New OleDbDataAdapter
myAdapter.SelectCommand = myCMD
Dim ds As New DataSet
ds.Clear()
myAdapter.Fill(ds, "Table1")
DataGridView1.DataSource = ds
DataGridView1.DataMember = "Table1"
How to save(update), delete the data displayed in the DataEntry form?
Last edited by a moderator: