Dim rno As Integer
cmd.CommandText = " select * from customerr"
Dim da As New SqlDataAdapter
Dim dt As New DataTable
da.SelectCommand = cmd
cmd.Connection = connection
da.Fill(dt)
rno = dt.Rows.Count - 1
If rno > 0 Then
rno -= 1
If dt.Rows.Count > "0" Then
txtcustid.Text = dt.Rows(rno)(0).ToString()
txtcustname.Text = dt.Rows(rno)(1).ToString()
txtcustaddress.Text = dt.Rows(rno)(2).ToString()
End If
cmd.CommandText = "select * from customerr"
If rno < dt.Rows.Count - 1 Then
rno += 1
If dt.Rows.Count > rno Then