>>>Is there a way to determine the number of rows currently in a grid control?
>>>
>>>I need to determine if i'm on the last row of the grid.
>>>
>>>TIA, Kim
>>
>>You can check eof() of your RecordSource in AfterRowColumnChange event.
>
>TRUE, but only if the underlying table in question is not filtered.
>
>Using a grid with a LinkMaster shows only child records related to the parent table. The active row of the grid may be the last row of this relation but not the EOF() of the related child table.
So, check not only for eof(), but also for Filter/Relation Expression:
Skip 1
if eof() or ChildTable.Field...<>RelExpr
&& this is 'last row'
endif
skip
Edward Pikman
Independent Consultant