first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

Access to VB: Open Forms with the Show Method in VB; Close Forms with the Unload Method

Use the Show method to open VB forms. This is quite different from the robust functionality available in Access' OpenForm method of the DoCmd object. There is only one optional parameter in the Show method, Owner.

Note: Using the Show or Hide method on a form is the same as setting the form's Visible property in code to True or False, respectively.

To close a form, use the Unload method of the VB object. The form is:

VB.Unload <object name>

in most cases a form's Exit button would have a Click event like the following:

Private Sub cmdExit_Click()
    VB.Unload Me
End Sub
mod date: 1998-10-20T21:25:49.000Z