Results 1 to 2 of 2
  1. #1
    Grantb is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    1

    Odd order of events when "i" entered in search text box

    I have a database with a form which has a section to filter records for a list box. One of the text boxes (txt1) filters on names. txt2 filters on a date.

    When a letter is entered in txt1 it triggers a change event which runs a PopulateListBox routine to populate the filtered list box with those records that have that letter in them (like '*[letter]*')

    Then the code moves to the next line which checks the txt2 box for any filter entry there. The sequence moves as follows: txt2.setfocus; txt1.lostfocus; txt2.gotfocus; subroutine to populate list box

    When the first letter entered in txt1 is an 'i' the sequence moves as follows: txt2.setfocus; txt1.change; subroutine to populate list box (i.e. in a circular motion) and creates an error

    When any other letter is entered as the first character in the txt1 box, all works correctly, even if the first letter is a capital "I". And an "i" as a subsequent letter (after the first) does not cause a problem. It is only when the first letter in txt1 is a lower case "i".

    Any light anyone can shed on this phenomenon?

  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,626
    Have you step debugged? Refer to link at bottom of my post for debugging guidelines.

    Would have to analyze code and form if you want to provide db.
    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.

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

Similar Threads

  1. Replies: 8
    Last Post: 03-05-2013, 01:20 PM
  2. Export "Query or Report" to a "Delimited Text File"
    By hawzmolly in forum Import/Export Data
    Replies: 3
    Last Post: 08-31-2012, 08:00 AM
  3. Writing Code for "After Update" Table Events
    By dipique in forum Programming
    Replies: 10
    Last Post: 07-09-2012, 08:11 AM
  4. Replies: 3
    Last Post: 06-29-2012, 08:54 AM
  5. Replies: 9
    Last Post: 05-19-2011, 12: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
  •  
Other Forums: Microsoft Office Forums