Hello,
How do I determine the total number of records founds?, I would also like to add to two buttons to move to the next or previous records, what code should I add in those button?
Thanks,
Victor
Dim ConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\aopt2002orgorg.mdb;Persist Security Info=True;Jet OLEDBatabase Password=testaopupdate"
Dim objConnection As New OleDb.OleDbConnection(ConnectionString)
'data adapter
Dim objDataAdapter As New OleDb.OleDbDataAdapter(mySQL_Statement, objConnection)
'dataset object
Dim objDataSet As New DataSet
'fill dataset
objConnection.Open()
?
?
?
objDataAdapter.Fill(objDataSet, "SN")
objConnection.Close()
How do I determine the total number of records founds?, I would also like to add to two buttons to move to the next or previous records, what code should I add in those button?
Thanks,
Victor
Dim ConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\aopt2002orgorg.mdb;Persist Security Info=True;Jet OLEDBatabase Password=testaopupdate"
Dim objConnection As New OleDb.OleDbConnection(ConnectionString)
'data adapter
Dim objDataAdapter As New OleDb.OleDbDataAdapter(mySQL_Statement, objConnection)
'dataset object
Dim objDataSet As New DataSet
'fill dataset
objConnection.Open()
?
?
?
objDataAdapter.Fill(objDataSet, "SN")
objConnection.Close()