Results 1 to 2 of 2
  1. #1
    desk4tbc is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2011
    Posts
    29

    Problem with a wildcard in a query criteria

    Hey guys,


    Does anyone know what is wrong with the following wildcard query?

    Code:
    SELECT PatientList.[Patient ID], PatientList.Patient
    FROM PatientList
    WHERE (((PatientList.Patient) Like "*" & [Treated]![Patient] & "*"));
    The wildcard "*" doesn't work and the Patient field has to be exactly the same for the query to find the Patient ID. I tried with and without the concatenation and neither work.

  2. #2
    desk4tbc is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2011
    Posts
    29
    Weird. It started working after I switched to a datasheet view.

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

Similar Threads

  1. Replies: 1
    Last Post: 07-13-2011, 11:00 AM
  2. Query Criteria problem
    By wpdesigner in forum Queries
    Replies: 0
    Last Post: 07-07-2010, 09:10 AM
  3. Replies: 1
    Last Post: 05-05-2010, 01:54 AM
  4. Parameter Query & Wildcard
    By Rick West in forum Queries
    Replies: 8
    Last Post: 12-29-2009, 10:54 AM
  5. Replies: 3
    Last Post: 06-03-2009, 07:15 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