Results 1 to 4 of 4
  1. #1
    colenzo is offline Novice
    Windows XP Access 2000
    Join Date
    Jul 2009
    Posts
    9

    Search Form & Telephone Numbers in text fields

    Hi All,



    I've used a fairly common set of code to create a dynamic multiple field search form, and have changed all the parameters to the database i have constructed, however, it doesn't appear to:

    1. want to search
    2. pop up the record in the original entry form

    I've zipped up the database, could someone have a look for me and point me in the right direction as I really am pulling my hair out now, and I have no clue how to fix it! I'm not in anyway knowledgeable with access and tend to get these tasks dumped on me in-between my regular workload!

    Something is telling me it's because I'm looking to search for a telephone number in a text field. And yes, I know this is backward: if anyone has a better suggestion then that's fine as long as you let me know how on earth I can search that specific field as well!

    Thanks

    Attached Files Attached Files

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Here is an example of using the On Change event handler to search a listbox. I looked at your code and don't really see any searching going on in your example.
    Attached Files Attached Files

  3. #3
    colenzo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2009
    Posts
    9
    Yeah..... thank-you but it didn't work either.

    Ironically, I have the same code in another database I have created that works perfectly as a dynamic search code. It just doesn't seem to be working for this particular database.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I took another look at the DB. The list box gets its Rowsource from a query. The query is a paramiterized query based on an unbound textbox in the form. The unbound textbox (the one that supports the query) gets its data from another unbound textbox.

    When the user types into the textbox provided, the list box RowSource changes.

    What is it that is not working for you? What do you want to happen when the user types into the textbox?

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

Similar Threads

  1. Replies: 3
    Last Post: 09-02-2013, 04:33 PM
  2. Search on text fields - Wildcard?
    By Harley Guy in forum Queries
    Replies: 3
    Last Post: 08-13-2013, 11:07 AM
  3. Replies: 3
    Last Post: 09-05-2012, 12:47 PM
  4. Replies: 4
    Last Post: 05-29-2012, 01:32 PM
  5. Search multiple fields from one text box
    By tommy93 in forum Queries
    Replies: 21
    Last Post: 01-10-2012, 02:18 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