Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

subform only visible if it contains data 1

Status
Not open for further replies.

kermit01de

Technical User
Jan 20, 2002
256
DE
Scenario:
- Form with Combo-Box - selected "User" will display details in detail section
- subform in detail section that displays the "user" if it is present in another table (SELECT [Fehlende].[User] FROM Fehlende; )

How to hide the subform if it does not contain records/data?

Thank you!



--------------------------------------
>>>>>> Bugs will appear in one part of a working program when another 'unrelated' part is modified <<<<<
 
Untested by I would think,

me.subformcontrolName.visible = (me.subformcontrolName.Form.recordsetclone.recordcount > 0)

called from the mainforms on current event and from the combos after update.
 
Thank you - that´s what I needed - Great!

--------------------------------------
>>>>>> Bugs will appear in one part of a working program when another 'unrelated' part is modified <<<<<
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top