locked
Displaying a form from another form RRS feed

  • Question

  • Yo all

    I'm like totally new to MS Access 2007 and am confused.

    I've created one form that works pretty well (call it form1) and I now need to add a button (say btn1) in form1 that displays another form that I created (call it form2).

    In form1  I have the following procedure:

    Private Sub btn1_Click()
       
        Dim f As New Form
        Set f = Form.Name( "form2")
       
        Load (f)
        f.Visible
     
    End Sub

    I guess it's clear this is busted code, saying "Wrong number of arguments or invalid property assignment.

    Thanks for any help!!!

    -jase
    Thursday, March 12, 2009 8:54 PM

Answers