Results 1 to 6 of 6
  1. #1
    jon01 is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    3

    Entering a name in query

    I have the table for tennis players and I created a query to where you can enter the name. The problem is that when I put [Enter name] in the query criteria, I have to type the full name to get results.



    For example: "Paul" doesn't give any results, but "Paul Smith" does.

    How can I modify the query so, that when I type "Paul", I get "Paul Smith", "Paul Johnson" and all other Pauls into the results?

  2. #2
    cap.zadi is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    KSA
    Posts
    481
    Hey,

    hope this will help you.

    http://www.fontstuff.com/access/acctut06.htm

    bye

  3. #3
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Like "*" & [Enter Name] & "*"

  4. #4
    jon01 is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    3
    Quote Originally Posted by aytee111 View Post
    Like "*" & [Enter Name] & "*"
    Thanks a lot, it was exactly what I was looking for.

  5. #5
    jon01 is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    3
    There's seem to be a problem with it now, because the Enter Parameter Value pops up twice. I don't get it, because I only have one form and no subforms. It appears to be doing it because I sorted one column after the first search.

  6. #6
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Every time the query runs the message will pop up. If you are running the query on a form then you can put a text box (combo box?) for the name on the form instead of in the query. The query can then reference the field on the form instead (criteria would be something like "Like "*" & Forms!FormName!FieldName & "*")

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

Similar Threads

  1. entering new records
    By MissRyan in forum Access
    Replies: 6
    Last Post: 06-29-2011, 04:39 AM
  2. entering one value but storing another
    By greatfallz in forum Forms
    Replies: 1
    Last Post: 06-09-2011, 07:23 AM
  3. Entering Criteria in a Query
    By wdrspens in forum Queries
    Replies: 4
    Last Post: 04-13-2011, 04:44 PM
  4. Entering more than one item when prompted?
    By 10 Gauge in forum Reports
    Replies: 10
    Last Post: 03-23-2011, 08:47 AM
  5. Entering query results in a form
    By marcello.dolcini in forum Forms
    Replies: 0
    Last Post: 04-15-2007, 06:01 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