Results 1 to 2 of 2
  1. #1
    SemiAuto40 is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    41

    Search field will not clear

    I have a form with several unbound search fields and code that I got from a gracious helper that creates SQL search phrase from those unbound fields. The filterOn works when I click the cmd_Search and I get exactly what I want as a search result... BUT when I place a cmd_Clear_Search_Terms and click to blank out the 3 search fields it does not work. Some fix I tried blanked out the fields but if I re-click on the cmd_Search btn then the query brings up whatever the last search brought up. The first time that I click on cmd_Search with no terms in the unbound boxes I have a msgbox that popsup a "no criteria" message just like it should. Why do you think that by trying to clear out the terms that I get the same results.

    It's like whatever I do I can't get the search fields to blank out and the cmd_Search btn to reset, but get the earlier search term results.

    Any one have any time to drop a hint to a struggling amateur?

    Thanx

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    What is your code to clear the search boxes? Do you have a line similar to
    Code:
    me.requery
    in your code.

    Alan

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

Similar Threads

  1. Replies: 2
    Last Post: 10-07-2011, 11:57 AM
  2. How to clear a search form ?
    By Trojnfn in forum Access
    Replies: 2
    Last Post: 10-05-2011, 01:12 PM
  3. Clear a Field OnClick
    By eww in forum Forms
    Replies: 3
    Last Post: 08-19-2010, 01:55 PM
  4. clear field values
    By surrendertoo in forum Queries
    Replies: 0
    Last Post: 02-23-2008, 10:57 PM
  5. Search and Clear button
    By polk383 in forum Programming
    Replies: 1
    Last Post: 08-30-2006, 08:51 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