>How can you test a grid to see if it is empty when the table supporting it is not. I have two tables (parent-child relationship) showing at the same time. When I move the record in the parent table that has no associated records in the child table the child table's grid is empty. I have buttons that allow you to edit and delete the selected child record and I want to disable these buttons if there are no records showing in the child table's grid. Is there a simple way to test for this?
>
>Colombo
Hi Jim,
Try in AfterRowColChange event on grid, where RecordSource is parent table
button1.enabled = NOT EOF('childtable')
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst