Tom van Stiphout replied to james
05-Feb-10 08:52 AM
You would have to first query the subforms to find out how many rows
there are. Or (but I like this less) run the same query as used for
the recordsource of the subforms.
What I might do is put these several subforms on a tab control, each
in their own tab. Then hide the actual tabs so it looks like just a
subform.
Now all subforms are open at all times, so you can easily get them to
requery and get their rowcount (using .RecordsetClone.RecordCount),
and you can use this info to decide which tab to activate.
-Tom.
Microsoft Access MVP