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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If no record in a subform then subform not visible

Status
Not open for further replies.

fludan

Technical User
Feb 1, 2002
41
US
Hi
I have a form with 3 subform, if subform1 as no data I would like the subform1 the be hide. For subform2 and 3 the same ting.

Thank
Frank
 
Select one field in each of the subforms that need to be populated for you to want it to be visible and enter in the OnCurrent event:
If IsNull(SelectedFieldName) Then
Me.SubForm1Name.Visible = False
Else
Me.SubForm1Name.Visible = True
End if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top