Results 1 to 4 of 4

Populated textbox still show old text when text in combobox is deleted

  1. #1
    jaz is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    May 2019
    Posts
    2

    Populated textbox still show old text when text in combobox is deleted

    I tried to populate textbox from combobox and it works. When deleting text in the combobox, the populated textbox will also be empty.
    Now when i tried to add a new combobox and textbox, the textbox does filter based on the combobox. But the textbox still show the last populated text when the value in the combobox is deleted.
    Why is it so?
    I tried to recreate the whole form, its old value is still try but it didnt before.



    I use 'on change' on the combobox.
    me.txt_Text1 = me.cbo_Combo1.Column(2)

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    47,221
    Try AfterUpdate event instead.
    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
    jaz is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    May 2019
    Posts
    2
    it works the same? because when i googled, all told me to put in on change event.

  4. #4
    rpeare is online now VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,323
    On change isn't triggered if you delete something

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

Similar Threads

  1. Replies: 5
    Last Post: 07-05-2017, 02:36 PM
  2. Replies: 7
    Last Post: 01-28-2016, 12:04 PM
  3. Returning text from fields populated by combobox.
    By Goodtilitsgone10 in forum Access
    Replies: 2
    Last Post: 11-23-2015, 08:40 PM
  4. Replies: 3
    Last Post: 02-07-2013, 09:53 PM
  5. Replies: 9
    Last Post: 01-17-2013, 09:08 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
  •  
Tech Forums: Microsoft Office Forums