fredg said:
I use Access2003 for a small database to record my movie
collection.
When I use combos to look up records, I want to suppress the
word "the" when searching for a movie in a query.
Is there some way to adjust the query field to do this.
Please help, Frank.
Instead of using the title by itself as a column, create a calculated
field:
NewTitle:IIf(Left([Title],4) = "The ",Mid([Title],5) & ", The",
[Title])
The above will either display the Title, or if the first word is "The
" move the "The " to the end of the title,
i.e. "Producers, The"
I wonder if the original poster could clarify what he's trying to do. It
seems obvious from the various replies that people are interpreting the
post to mean that he wants to remove the word "the" from the beginning
of a movie title, but when re-reading the original post, all I see is
that he wants to suppress the word "the". It doesn't specify from where,
which implies that he wants to suppress all occurrences of the word "the".
The way I interpret the question is, if he typed "the producers" into a
search field, then the query would actually search for "producers". Or,
if he typed "lord of the rings" into the search field, it would search
for "lord of rings".