>Hi Andy,
>
>IF NOT EMPTY( lcAlias ) && AND USED( lcAlias ) not need
>
>if a grid have a RecordSource, it is sure used.
But the point of the question was not whether the recordsource property was populated, but "Does the recordsource have any records?" Your solution merely ASSUMES that if it is there it has records.
Since the question implied that the recordsource was being populated programmatically, so there is no guarantee that the recordsource is:
[1] Populated with a valid reference to a Table, Cursor or View
[2] That the specified Table, Cursor or View is Open in the current Data Session
[3] That even if it is open, that it actually contains records
So I have to disagree with your assertion that the test is unnecessary!
----
Regards
Andy Kramek