Rik_StHelens
Registered User.
- Local time
- Today, 11:32
- Joined
- Sep 15, 2009
- Messages
- 164
Hi all,
I have a query which uses values in two hidden text boxes, in order to populate a sub form.
Unfortunately some times the data in the text box contains brackets within it as follows:
'120/60 ZR17 (55W)'
When this occurs the query returns no data, even though records with a matching code exists in the table I am working with where Speed is 'FR'.
How can I get around this, as surely if I used quote marks it would take "[forms]![frmSearch]![Text10]" as the value I am searching for.
Thanks in advance,
Richard
I have a query which uses values in two hidden text boxes, in order to populate a sub form.
Unfortunately some times the data in the text box contains brackets within it as follows:
'120/60 ZR17 (55W)'
When this occurs the query returns no data, even though records with a matching code exists in the table I am working with where Speed is 'FR'.
Code:
WHERE (((stockdyn.SPEED)="FR") AND ((stockdyn.DESCRIPN) Like '*' & [forms]![frmSearch]![Text10] & '*'))
How can I get around this, as surely if I used quote marks it would take "[forms]![frmSearch]![Text10]" as the value I am searching for.
Thanks in advance,
Richard