>>>Is there a way to find which record shows in the first row of a grid? RECNO() would be fine.
>>>
>>>TIA,
>>>
>>>Alex
>>
>>It depends of the current ORDER.
>>Maybe the MIN() value of the order KEY?
>>or even:
>>
>>SELECT GridRecordSource
>>GO TOP
>>lnTOPRecNo = RECNO()
>>
>>
>>but you should change it everywhere you change the current order of that table.
>
>In that case,
>
>select 0
>use dbf("gridrecordsource") again alias src2
>* do something to set order the same as in the grid
>go top
>lnTopRecNo=recno()
>use
>
SELET gridrecordsource
lnCurrentRecNo = RECNO()
SET ORDER TO ....
GO TOP
lnTopRecNo=recno()
GO lnCurrentRecNo
Don't know which is faster :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.