Question Data Navigation Problem

imagetvr

New member
Joined
Apr 6, 2009
Messages
1
Programming Experience
Beginner
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
===============
 
Take a read of the DW1 link in my signature; it's a set of tutorials that will start you off on data access in the proper way recommended by Microsoft. Further, i think it'll solve your problem because noone who follows them ever complains of what youre strugglign with :)
 

Latest posts

Back
Top