Results 1 to 6 of 6
  1. #1
    rt310 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    4

    QBF Criteria error


    So far my criteria looks like this: like forms![searchform].[qauthor1] & "*"
    however, when i enter the criteria into a search box and run it, it prompts me with a paramaters box and i have to enter the info AGAIN. did i mess up the code or something?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Don't know. Code looks good but just don't know enough about your db. If you want to provide db for analysis, follow instructions at bottom of my post.
    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
    rt310 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    4

    Link

    Quote Originally Posted by June7 View Post
    Don't know. Code looks good but just don't know enough about your db. If you want to provide db for analysis, follow instructions at bottom of my post.
    Form is "test", query is "authors query"
    Attached Files Attached Files

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Then the criteria in query should be:

    Like [forms]![test]![qauthor1] & "*"
    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.

  5. #5
    rt310 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    4

    Re: QBF Criteria error

    Thx, it works fine now. Another question: is it possible to create a button which clears the search terms? I've seen a 'clear parameters' button but don't know where it is.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    You have seen demonstration for a 'clear parameters' button but don't remember where?

    The code is simply to set the textboxes to null or empty string, like:

    Me.qauthor1 = Null
    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: 1
    Last Post: 05-11-2012, 10:59 AM
  2. Criteria Union Error
    By Jerseynjphillypa in forum Queries
    Replies: 2
    Last Post: 04-30-2012, 12:04 PM
  3. Search Criteria Error
    By hitesh_asrani_j in forum Forms
    Replies: 25
    Last Post: 09-29-2011, 10:35 AM
  4. Error message for criteria statment
    By macattack03 in forum Queries
    Replies: 1
    Last Post: 04-23-2011, 11:21 AM
  5. Replies: 3
    Last Post: 03-16-2011, 02:23 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