hi
I have an access database, which I connect it to the form
I have text boxes which displays info from the fields in the database.
I have created a "Next", and "Previous" button, which the user can move between the database info but i don't know the code for them can you plz help me
this is my code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim con As New OleDb.OleDbConnection
con.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = C:\bb1.mdb"
con.Open()
Dim ds As New DataSet
Dim da As OleDb.OleDbDataAdapter
Dim sql As String
sql = "SELECT * FROM b1"
da = New OleDb.OleDbDataAdapter(sql, con)
da.Fill(ds, "b1")
TextBox1.Text = ds.Tables("b1").Rows(0).Item(0)
TextBox2.Text = ds.Tables("b1").Rows(0).Item(1)
TextBox3.Text = ds.Tables("b1").Rows(0).Item(2)
con.Close()