Results 1 to 8 of 8

Thread: Display Corresponding Value From Adjacent Column Based On Change of DropDown ComboBox

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Posts
    4
    Rep Power
    0

    Display Corresponding Value From Adjacent Column Based On Change of DropDown ComboBox

    I have two columns of data. The first contains 'names' and the second contains 'passwords'. The Userform is completed with information plus a combobox displaying 'names'. When the command button is clicked, the information is updated to a database and the 'name' selected in the combobox should display the matching 'password' on a message box.

    The question is how do I code the combobox element of the userform to display on a message box, the 'password' matching the 'name' selected?

  2. #2
    Senior Member alansidman's Avatar
    Join Date
    Apr 2012
    Posts
    125
    Rep Power
    14
    Look at this attached file.

    Open the VBE. Look at the Row Properties for the Combo Box and then look at the code for the text box.
    Attached Files Attached Files

  3. #3
    Junior Member
    Join Date
    Oct 2013
    Posts
    4
    Rep Power
    0
    That is perfect but the display of 'password' should be in a message box and should happen when the user hits a command button.

  4. #4
    Senior Member alansidman's Avatar
    Join Date
    Apr 2012
    Posts
    125
    Rep Power
    14
    Ok. No worries. Look at the attached.
    Attached Files Attached Files

  5. #5
    Junior Member
    Join Date
    Oct 2013
    Posts
    4
    Rep Power
    0
    That works....Thanks

  6. #6
    Junior Member
    Join Date
    Oct 2013
    Posts
    4
    Rep Power
    0
    Quote Originally Posted by alansidman View Post
    Ok. No worries. Look at the attached.
    That certainly works...Thanks. The other part of it is ....if a user selects a name and password, that name and password should not be available for the next user. Question is how do I code it?

  7. #7

  8. #8
    Moderator
    Join Date
    Jul 2012
    Posts
    156
    Rep Power
    13
    Been playing around a little. Check if this suits your needs.
    Several questions have to be answered yet but this gives you a general idea.
    Attached Files Attached Files

Similar Threads

  1. Fill Combobox Based On Values In Adjacent Column
    By rydysh in forum Excel Help
    Replies: 5
    Last Post: 10-03-2013, 07:27 AM
  2. Replies: 1
    Last Post: 08-20-2013, 04:31 PM
  3. Replies: 8
    Last Post: 08-17-2013, 04:03 AM
  4. Replies: 10
    Last Post: 06-20-2013, 12:21 AM
  5. Change Display Range Based On Change of Dropdown Values
    By rich_cirillo in forum Excel Help
    Replies: 2
    Last Post: 03-29-2013, 04:58 AM

Tags for this Thread

Posting Permissions

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