Results 1 to 3 of 3
  1. #1
    bill s is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Aug 2015
    Posts
    8

    drop down box assigns values to TextBox - unbound value only changes one time

    Hello all,

    I have a drop down box that populates 3 fields,

    SELECT LEGAL_NOTE , 'this is bound to drop down
    FY, 'this is unbound to a text box
    LEGAL_CITE ' this is bound to a text box
    FROM R_LEGAL_CITE

    I have a OnChange event on the dropdown control that works fine, however, me.txtLegalFy is unbound and is display text box only. It works on the first drop down selection, however, if I change the drop down selection, it will not update. It maintains from the first selection. Me.txtLegalCiteMFR is bound and changes without issue on when the dropdown selection changes.

    Private Sub cmbLegalNote_Change()
    Me.txtLegalFy = Me.cmbLegalNote.Column(1)


    Me.txtLegalCiteMFR = Me.cmbLegalNote.Column(2)
    End Sub

    Any suggestions? I have tried many different approaches.

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    I have never used OnChange event. I use AfterUpdate. Not sure it will make a difference but try it.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    bill s is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Aug 2015
    Posts
    8
    Quote Originally Posted by June7 View Post
    I have never used OnChange event. I use AfterUpdate. Not sure it will make a difference but try it.
    Bingo! Thank you! That worked. I had tried that but didn't remove the "OnChange" code. AfterUpdate is the way to go.

    thanks.
    Bill

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

Similar Threads

  1. Replies: 19
    Last Post: 09-09-2014, 01:36 AM
  2. Report that auto assigns check numbers
    By jonathangpark in forum Reports
    Replies: 11
    Last Post: 04-22-2014, 02:58 PM
  3. unbound textbox to bound textbox
    By thescottsman92 in forum Access
    Replies: 3
    Last Post: 08-29-2013, 02:02 AM
  4. Replies: 8
    Last Post: 04-12-2013, 08:59 PM
  5. Drag and Drop into Textbox
    By jagvent in forum Forms
    Replies: 1
    Last Post: 12-20-2010, 09:31 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
  •  
Other Forums: Microsoft Office Forums