B
b dubbin
How do I search a memo field as a partial string as defined by a user entered
on a form using a query?
What I mean...
- I have a form (frmReport).
- frmReport has a textbox (txtDescription)
- A user can enter a string of words into the textbox.
- I have a query (qryDescription)
- qryDescription has a field (fdDescription) from a table (tblDescription).
- fdDescription field has a Data Type of 'Memo'.
- I want to place criteria on the qryDescription query based on whatever the
user enters in the textbox txtDescription on the frmReport form.
Within the query builder as 'Criteria' for fdDescription I tried:
Like "*[Forms]![frmReport]![txtDescription]*"
The query runs but no values are returned when a word(s) is inputted on the
frmReport that contains a word in the tblDescription.
I also tried:
Like "*" & [Forms]![frmReport]![txtDescription] & "*"
The query runs but returns all records.
What should I type in the Criteria box of the query (or what's the SQL) that
I need to use?
Thanks in advance...
on a form using a query?
What I mean...
- I have a form (frmReport).
- frmReport has a textbox (txtDescription)
- A user can enter a string of words into the textbox.
- I have a query (qryDescription)
- qryDescription has a field (fdDescription) from a table (tblDescription).
- fdDescription field has a Data Type of 'Memo'.
- I want to place criteria on the qryDescription query based on whatever the
user enters in the textbox txtDescription on the frmReport form.
Within the query builder as 'Criteria' for fdDescription I tried:
Like "*[Forms]![frmReport]![txtDescription]*"
The query runs but no values are returned when a word(s) is inputted on the
frmReport that contains a word in the tblDescription.
I also tried:
Like "*" & [Forms]![frmReport]![txtDescription] & "*"
The query runs but returns all records.
What should I type in the Criteria box of the query (or what's the SQL) that
I need to use?
Thanks in advance...