Results 1 to 4 of 4

Thread: access: loading a second form

  1. #1

    Thread Starter
    Addicted Member c@lle's Avatar
    Join Date
    Oct 1999
    Location
    Belgium
    Posts
    179
    Hello,
    how can I load a form in access?
    I have one form (frmOne) with a command button. If I click on this button, I want to show a second form (frmTwo) with a label.

    How can I load this second form???

    Thanks.

  2. #2
    Junior Member berebeton's Avatar
    Join Date
    Nov 2000
    Location
    Haacht (beer...), Belgium
    Posts
    24
    C@lle,

    you have to use following code :


    DoCmd.OpenForm "test"


    where test is a form ofcourse...

    Bere Beton


  3. #3
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    This will probably work also:

    Dim frm as frmTwo
    Set frm = New frmTwo
    frmTwo.Show


    Josh

  4. #4
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Err - I meant

    Dim frm as frmTwo
    Set frm = New frmTwo
    frm.Show

    Compiler-dependant Josh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width