Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2003
    Posts
    8

    Unanswered: Multiple Forms - Type Mismatch Error

    Hi,


    I am using the following code in my VB project,

    In Form1 I have:

    Private Sub Form_Load()
    Dim Frm3 As New Form3
    Frm3.ShowPage (Me)
    ......
    .....
    .....
    End Sub

    In Form3 I have:

    Private firstForm As Form1
    Public Sub ShowPage(ByRef frm As Form1)
    firstForm = frm
    End Sub

    When I run it I get a runtime error '13' - Type Mismatch.

    Please help me get rid of this error.

  2. #2
    Join Date
    Jan 2003
    Location
    Dordrecht, The Netherlands
    Posts
    95

    Re: Multiple Forms - Type Mismatch Error

    Try:

    Set firstForm = frm

    Ad.


    Originally posted by sgskumar
    Hi,


    I am using the following code in my VB project,

    In Form1 I have:

    Private Sub Form_Load()
    Dim Frm3 As New Form3
    Frm3.ShowPage (Me)
    ......
    .....
    .....
    End Sub

    In Form3 I have:

    Private firstForm As Form1
    Public Sub ShowPage(ByRef frm As Form1)
    firstForm = frm
    End Sub

    When I run it I get a runtime error '13' - Type Mismatch.

    Please help me get rid of this error.

  3. #3
    Join Date
    Jun 2003
    Posts
    8

    Re: Multiple Forms - Type Mismatch Error

    Originally posted by Ad Dieleman
    Try:

    Set firstForm = frm

    Ad.

    Hi,

    I tried it but didnt work. Thanks anyway.

Posting Permissions

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