Results 1 to 2 of 2
  1. #1
    donsi is offline Novice
    Windows 8 Access 2013 64bit
    Join Date
    Sep 2016
    Posts
    16

    Trying to get value in textbox based on Combobox selection

    So I created a cbo box on the form and assigned two Value list column as row source. Now I wanted to auto populate textbox based on the user selection of cbo box. i.e. if 1 is selected by user then txtbox will display One. I don't want user to click anywhere else of loose focus from the combo box so if they want to keep changing, it should reflect the changes in textbox. I tried various methods to achieve this,
    1. set Event to "On Change" for cbobox and entered below code


    Code:
    Private Sub CboStatus_Change()Me.txtPoints = Me.CboStatus.Column(2)
    End Sub
    This doesn't work at all.

  2. #2
    donsi is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Sep 2016
    Posts
    16
    I just figured it out, I had to change from Column(2) to Column(1)

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 11-05-2014, 02:43 AM
  2. Replies: 2
    Last Post: 08-22-2014, 01:20 PM
  3. Replies: 1
    Last Post: 09-06-2011, 01:47 PM
  4. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  5. Replies: 0
    Last Post: 12-16-2009, 01:14 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
  •  
Other Forums: Microsoft Office Forums