Not to be rude, but this didn't help. I still need to know WHERE this should go. I did the SET STEP ON and followed it, the math and work area is correct, but it is the matter is WHERE this goes...
>Hope this will help.
>
>>>>>>>>>>>>>>>>>Previous messages below
>WHERE would that go? In the ClickEvents of all of the buttons (to ensure it is working)? I was hoping not having to repeat the coding (copy/paste it all over) or use it as a function? I have a parent table (person) and the child table (auth) is in the grid, with the relationship active.
>
>>>>>>>>>>>>>>>>>>Previous messages below
>>SELECT auth
>>COUNT FOR person.id = auth.id TO ct
>>SELECT person
>>IF ct > 0
>>ThisForm.Commandgroup2.Command2.ENABLED = .T. (via, the Edit button)
>>ThisForm.Commandgroup2.Command3.ENABLED = .T. (via, the Delete button)
>>ELSE
>>ThisForm.Commandgroup2.Command2.ENABLED = .F.
>>ThisForm.Commandgroup2.Command3.ENABLED = .F.
>>ENDIF
Today is tomorrow's yesterday.