disable background forms

S

Simon

i have a form which when a command button is clicked, a new form opens,
similarly this form can open another form in the same way. When a new form is
opened i want the other forms to be disabled and only the current form
accessible and on top of the display, until the current form is closed or a
new form opened from the current form. Wow thats a mouthful, hope thats clear

cheers

Si
 
A

Albert D. Kallal

Simply set each form to model (in the other tab).

This will mean that as each form is opened, the previous forms cannot be
accessed. And, your users will have to back out the same way/order that they
got to the current form. A very large portion of my forms are thus model...
 
B

Bruce

You could add a line of code to the end of the Click event for the command
button. One option is:
DoCmd.Close
This closes the form on which the command button appears. Another option is:
Me.Visible = False
This hides the form on which the command button appears. Command buttons to
close subsequent forms could include something like:
[Forms]![frmPreviousForm].Visible = True
 
Top