Results 1 to 3 of 3

Thread: How to get variable from one form to pass to another form

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2000
    Location
    bebenia, PA, USA
    Posts
    241
    I don't know why this is so hard for me to do.

    I have cbo boxes on one form1 I need the results of cboMonth and cboYear to be available in form2; I can't seem to get them to pass between forms; how do i do this?

  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Add a module to your project and declare any var there (as Public):
    Code:
    Public MyVar as String
    After the user selected something from te first combo box you'll have to apply this value to a var and then u can use it in any form of you project


  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2000
    Location
    bebenia, PA, USA
    Posts
    241
    thanks that was it

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