J
Joseph
Good day,
How do I get the sql count result from dataReader?
I tried to use
Call connectSource()
Dim sqlstr4 As String = "Select COUNT(*) from product where product_id = " &
pid
Dim objCommand4 As New OleDb.OleDbCommand(sqlstr4, cnn)
Dim objDataReader4 As OleDb.OleDbDataReader
objDataReader4 = objCommand4.ExecuteReader
Dim total_pages As Integer = objDataReader4.Item(0)
but in vain. Kindly advise
Joseph
How do I get the sql count result from dataReader?
I tried to use
Call connectSource()
Dim sqlstr4 As String = "Select COUNT(*) from product where product_id = " &
pid
Dim objCommand4 As New OleDb.OleDbCommand(sqlstr4, cnn)
Dim objDataReader4 As OleDb.OleDbDataReader
objDataReader4 = objCommand4.ExecuteReader
Dim total_pages As Integer = objDataReader4.Item(0)
but in vain. Kindly advise
Joseph