Results 1 to 2 of 2

Thread: referencing a form

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    1
    Why can't I do the following?:


    public lastForm as Form

    Private Sub Form_Load()

    lastForm = Me

    End Sub


    VB tells me "Invalid use of property"

  2. #2
    Fanatic Member ExcalibursZone's Avatar
    Join Date
    Feb 2000
    Location
    Western NY State
    Posts
    908
    You can't assign an object like you can other variables such as strings ...

    You should use SET.

    Set lastForm = Me

    This should fix it up for ya.
    -Excalibur

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