Results 1 to 3 of 3

Thread: transfer data between forms

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2004
    Posts
    2

    transfer data between forms

    How can I move data between forms, even I used Public Variable and Function
    Thanks.

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    What's wrong with public? Did you try it?
    Attached Files Attached Files


    Has someone helped you? Then you can Rate their helpful post.

  3. #3
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918
    My personal preference would be to use a custom form property. You can create properties in forms just as you would in a class module. The main benefit here is that the forms remain self-contained and you don't need a separate module to hold public variables.

    The properties are accessed the same way as for normal form properties, eg
    VB Code:
    1. frmMain.MyProperty = strWhatever
    Oh, and by the way, you can reference a form's custom property with needing to have the form loaded and accessing the property will NOT cause the form to load.

    Very useful IMHO.
    Pete

    No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.

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