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

Hiding subforms

Status
Not open for further replies.

wabtrainer

IS-IT--Management
Feb 4, 2002
66
GB
I have a main form that I use with two different selectors, one opens the form in read only mode, the other in add mode.
The form includes a sub form that I would like to hide when the form is in add mode.
The buttons are on the switch board and I would use the Visible = False, but I can not see where it goes?????
If you want to be a bear:
Be a Grizzly!
 
On your button that opens up the form use an If..Then statement...

'Open Form....then

If (MyForm.property = "Add") Then
Forms![frmMyForm].Form![MySubForm].Visible = False
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top