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

Disable a sub-form

Status
Not open for further replies.

tinymind

Programmer
Nov 9, 2000
90
GB
I have a form which when opened runs a sub-form and the underlying query.
How do I disable this on opening the form and only open it when required to do so via a button?

 
In the OnLoad event, make the subform invisible:
Me!subform.visible = false

Let the button make it visible, and requery the form if necessary.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top