I am using vb.net2003 and ms-access2000 for small application . I have a problem in navigating previous record. No error message but not data displayed.
In same time code for show works well please rectify my error
here is code for show button and previous button
using oledbdataadapter
=====================
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles show.Click
OleDbDataAdapter1.SelectCommand.Parameters("empno").Value = txtempno.Text
DataSet11.Clear()
OleDbDataAdapter1.Fill(DataSet11)
End Sub
Private Sub btnprevious_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnprevious.Click
Me.BindingContext(DataSet11, "address").Position -= 1
End Sub
End Class
===============
In same time code for show works well please rectify my error
here is code for show button and previous button
using oledbdataadapter
=====================
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles show.Click
OleDbDataAdapter1.SelectCommand.Parameters("empno").Value = txtempno.Text
DataSet11.Clear()
OleDbDataAdapter1.Fill(DataSet11)
End Sub
Private Sub btnprevious_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnprevious.Click
Me.BindingContext(DataSet11, "address").Position -= 1
End Sub
End Class
===============