S
salih ataoz
in visual basic 6 rst.recordcount shows us how many
records are there in rst
but in studio .net
i dont konw ho to learn recordcount
the code is like this
cnn.Open()
Dim cmd As OleDbCommand = New OleDbCommand()
cmd.Connection = cnn
cmd.CommandType = CommandType.Text
Dim sql As String
sql = "select * from users where username='" &_
TextBox1.Text & "' and password='" & TextBox2.Text & "';"
cmd.CommandText = sql
Dim result1 As OleDbDataReader
result1 = cmd.ExecuteReader
................
here i must learn the recordcount
records are there in rst
but in studio .net
i dont konw ho to learn recordcount
the code is like this
cnn.Open()
Dim cmd As OleDbCommand = New OleDbCommand()
cmd.Connection = cnn
cmd.CommandType = CommandType.Text
Dim sql As String
sql = "select * from users where username='" &_
TextBox1.Text & "' and password='" & TextBox2.Text & "';"
cmd.CommandText = sql
Dim result1 As OleDbDataReader
result1 = cmd.ExecuteReader
................
here i must learn the recordcount