Link to home
Start Free TrialLog in
Avatar of BradleyOnTheRoad
BradleyOnTheRoadFlag for United States of America

asked on

Access: how do you test for a blank sub form?

Hello,

I would like to test an Access sub form using VBA to see if it's empty. If it is, I would like to modify controls on the main form.

The sub form does not allow edits, additions, or deletions. How do I test the sub form to find out when it's empty? Also, do I use the test in the main form onCurrent event?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Hamed Nasr
Hamed Nasr
Flag of Oman image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SubForm tblY,  record source = tblY
Link fields=M
Avatar of BradleyOnTheRoad

ASKER

Thanks