Querying a DB by a match on part of field string.

Woodpecker

Member
Local time
Today, 20:15
Joined
Apr 30, 2023
Messages
39
On Access 2000, I want to produce a query by a complete match on one field, but also by a match on part of the text string of another field which is entered in a pop-up, ie.to query the Title field and list all records containing the string 'Ship' . I've tried different expressions but none work. Guidance here would be much appreciated!
 

Attachments

  • Access Query 07.jpg
    Access Query 07.jpg
    47.2 KB · Views: 131
Like "*" & [Enter Text] & "*"

That matches any word with "Ship" in it


Like "*" & [Enter Text] matches any string starting with Ship
Like [Enter Text] & "*" matches any string ending in Ship
 
Like "*" & [Enter Text] & "*"

That matches any word with "Ship" in it


Like "*" & [Enter Text] matches any string starting with Ship
Like [Enter Text] & "*" matches any string ending in Ship
Thanks MajP, that was just what I needed!
 

Users who are viewing this thread

Back
Top Bottom