Please help with hiding/unhiding forms in code

  • Thread starter Thread starter Kate
  • Start date Start date
K

Kate

I have a form where a user enters some data and then
clicks a button. In the code attached to this button I
want to condtionally open another form, allow the user to
enter more data, process the data and then close the
second form and perhaps the first form (to return to a
switchboard) depending on the data entered.

How do I code this?

Is there code to hide the first form while the second form
is open? How do I then unhide the first form?

Thanks for any help.
 
Kate,

To open and close forms programatically, you would use something like:

DoCmd.OpenForm "FormName"
DoCmd.Close AcForm, "FormName"

To temporarily hide and unhide an open form (without closing it),

Forms![FormName].Visible = False / True

Look it up in VB help for more details.

HTH,
Nikos
 
Back
Top