Results 1 to 5 of 5

Thread: problem with combobox

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    problem with combobox

    hello,

    I have a combobox that where the user can select Equity/Bonds/Alt Invt
    Is it possible, isntead of returning these values to return 1 for Equity, 2 for Bonds and 3 for Alt Invt when the user makes a choice?

    I post my code here:

    [vba]
    For i = 1 To 6
    'Security Type
    bfSectype = "Sectype" & CStr(i)
    With Me.Controls(bfSectype)
    .AddItem "Alt Inv"
    .AddItem "Equity"
    .AddItem "Bond"
    End With

    'Zone
    bfZone = "Zone" & CStr(i)
    With Me.Controls(bfZone)
    .AddItem "Asia"
    .AddItem "Emerging Mkts"
    .AddItem "Europe"
    .AddItem "Japan"
    .AddItem "US & World"
    End With

    Next i
    [/vba]


    on a separate issue: is there a way to prevent the user from NOT using the values that are part of the list? (right now, the user can override the dropdown list and write wathever he wants)

    thanks!
    Last edited by choubix; 07-16-2008 at 08:36 PM.

Posting Permissions

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