+ Reply to Thread
Results 1 to 3 of 3

Listbox Value

  1. #1
    StephanieH
    Guest

    Listbox Value

    This has to be easier than I'm making it. I have two Listboxes on a form. I
    want to combine the input from the listboxes to create a single value. For
    instance if the value from Listbox2 is "2005" and Listbox3 is "03" I want my
    value to be "2005_03". I've tried MyValue = " & ListBox2.Value & "_" &
    Listbox3.Value & " and MyValue = ListBox2.Value "_" Listbox3.Value and
    neither work. What am I doing wrong?

  2. #2
    Dave Peterson
    Guest

    Re: Listbox Value

    MyValue = ListBox2.Value & "_" & Listbox3.Value

    Didn't work?

    StephanieH wrote:
    >
    > This has to be easier than I'm making it. I have two Listboxes on a form. I
    > want to combine the input from the listboxes to create a single value. For
    > instance if the value from Listbox2 is "2005" and Listbox3 is "03" I want my
    > value to be "2005_03". I've tried MyValue = " & ListBox2.Value & "_" &
    > Listbox3.Value & " and MyValue = ListBox2.Value "_" Listbox3.Value and
    > neither work. What am I doing wrong?


    --

    Dave Peterson

  3. #3
    StephanieH
    Guest

    Re: Listbox Value

    Ugh. So close, and yet so far.

    Thanks Dave.



    "Dave Peterson" wrote:

    > MyValue = ListBox2.Value & "_" & Listbox3.Value
    >
    > Didn't work?
    >
    > StephanieH wrote:
    > >
    > > This has to be easier than I'm making it. I have two Listboxes on a form. I
    > > want to combine the input from the listboxes to create a single value. For
    > > instance if the value from Listbox2 is "2005" and Listbox3 is "03" I want my
    > > value to be "2005_03". I've tried MyValue = " & ListBox2.Value & "_" &
    > > Listbox3.Value & " and MyValue = ListBox2.Value "_" Listbox3.Value and
    > > neither work. What am I doing wrong?

    >
    > --
    >
    > Dave Peterson
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1