Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228

    update/on change event

    I have a text box that I'm using as part of a query to filter results. If I make the form refresh on the change event of that text box I can only type one character at a time.



    If I change this to the after update event it only works when I click a different control (which is not ideal). So basically looking for a suggestion what to do here.

    In the past I've used the after update. But this form doesn't have a lot of places to click to activate the refresh.

    Cheers.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Does this do what you want?

    http://allenbrowne.com/AppFindAsUType.html
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Looks like it will when I get it to work. Perfect. Thanks a lot Paul.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    I was wondering if you have any idea why this bug happens. If you use this and you create a situation where no results are returned then updating the search textbox will never return anything after. you HAVE to change criteria drop down box for search then begin to search again. Could you see anywhere in the code I should be looking?

    Andy.

  6. #6
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    If you don't enable "add records" this happens. A work around is to enable adding of records then lock all fields.

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

Similar Threads

  1. Event at Record Change
    By Joakim N in forum Programming
    Replies: 2
    Last Post: 10-16-2016, 06:09 AM
  2. Replies: 1
    Last Post: 06-25-2016, 02:00 PM
  3. Replies: 6
    Last Post: 11-05-2014, 05:27 PM
  4. VBA Programming for After Change() event?
    By mrmims in forum Programming
    Replies: 5
    Last Post: 07-06-2014, 05:47 PM
  5. Replies: 7
    Last Post: 05-08-2014, 10:34 AM

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