Kim, try creating a property to hold the current ActiveRow value in the AfterRowColChange Event Test this property against the new ActiveRow value. If it increased call the method from your NAV buttons that checks for conditions for enabling/disabling its Next/End command buttons. If It decreased call your method from you NAV buttons that check s for conditions for enabling/disabling its Top/Prev command buttons. I use code like this.
This code doesn't care about filters or indexing in my applications.
***Sample code from my Next Command Button
SKIP 2 && Try to go past EOF()
IF EOF()
Go Bottom
This.Parent.cmdEnd.enabled = .F.
This.Parent.cmdNext.enabled = .F.
ELSE
SKIP -1 && Actually where you want to be
ENDIF
WITH This.Parent && Ensure other nav buttons are enabled
.cmdTop.enabled = .T.
.cmdPrev.enabled = .T.
EndWith
Terry Rooks
Software Systems Architect
Microsoft Certified Solution Developer.Net
If at first you don't succeed, then skydiving definitely isn't for you.