Results 1 to 5 of 5

Thread: Show form

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Location
    Baexem, Limburg, The Netherlands
    Posts
    5

    Question

    I'm developing a database in Access 2000. I have the following problem:

    I have, let's say, two forms created in Design View.

    I want to have form2 showed when I click on a commandbutton in form1. In code-form:

    Private Sub Command0_Click()
    Forms("form2").Show
    End Sub

    However I keep getting this error that Access does not know form 2. More formally:

    Run-time error '2450'

    Microsoft Office can not find the form 'form2' referred to in a macro expression or Visual Basic code


    Can anyone help me out here?

    Thanks!!

    Gertjan

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Canada
    Posts
    264
    form2.show

    that's all ...
    In the beginning the universe was created. This has made a lot of people very angry and is generally regarded as a bad idea.

    - Douglas Adams
    The Hitchhiker's Guide to the Galaxy

  3. #3
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Gertjan, dutch?
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  4. #4

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Location
    Baexem, Limburg, The Netherlands
    Posts
    5
    yes, ik ben nederlands

    jij ook dus?

  5. #5
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Ja, maar laten we niet verder praten hier, daar is het forum niet voor. ICQ 18818940

    Translation:
    Yes, but let's don't talk here, that's not the purpose of this forum. (We're not chitchatting )
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

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