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
I thought this was working for a while, but appearly I must have over looked or something else allowed it or whatever. This coding was in the GRID's Refresh. As to my best understanding, maybe it wasn't supposed to be in the Refresh, so where should this be at? This is for to check if there is any records in the CHILD while the PARENT is active. This being said, I also have the 'Add' button (which would be the ThisForm.Commandgroup2.Command1) and upon/after the record is saved (in the child table), I would need to enable those two button as well, so this is why I have the code like this... can you help me with this?
Chuck
>It seems you are loosing the proper work area.
>Try to use debug to see what is the alias(), and on what line you get an error.
>You may do it by adding 'set step on' in the very beginning of the code you dispayed here.
Today is tomorrow's yesterday.