|
The datagrid property can only get the current row of the datagrid table, not the recordset.
If your datagrid can only display 10 records at a time,
When you click the last row of datagrid, the value returned by datagrid.row will always only be 10.
It doesn't matter how many records your record is in the table.
It's hard to say, you know what's going on.
Private Sub DataGrid1_RowColChange (LastRow As Variant, ByVal LastCol As Integer)
Text1.Text = datagrid.Row
End Sub
The following is the value obtained using the Bookmark property of the Recordset
Private Sub DataGrid1_RowColChange (LastRow As Variant, ByVal LastCol As Integer)
Text1.Text = Adodc1.Recordset.Bookmark
End Sub |
|