Querying a DB by a match on part of field string. (1 Viewer)

Woodpecker

Member
Local time
Today, 22:50
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: 72

MajP

You've got your good things, and you've got mine.
Local time
Today, 17:50
Joined
May 21, 2018
Messages
8,529
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
 

Woodpecker

Member
Local time
Today, 22:50
Joined
Apr 30, 2023
Messages
39
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

Top Bottom