Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to read the character ] from a query 1

Status
Not open for further replies.

Bresart

Programmer
Feb 14, 2007
314
ES
Hi, for many records i have a field in a table with the text [...]. I want to obtain in a query only the records that have this text, so in the design view of the query, in the field desired i include as criteria:

Like '*' & '[' & '*'

But the query returns no records, the character [ is not read correctly.

Is there any other way of including this character on the criteria condition?

Thanks in advance.
 
Thanks lespaul. That text gives the same result.

It's a query.
 
Oddly enough, it is:

Like '*[[]*'

You need to bracket special characters.
 
thanks remou, have a star; still learn something new everyday!

les
 
Thanks pwise Remou.

pwise, it works correctly.

Remou, with the condition

Like '*[[]*'

the query gives the matching records, but with the condition

Like '*[]]*'

the query gives no record.
 
There is a little oddity, I'm afraid:

Like '*]*'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top