Vigilante001
A Jolly Fellow...
- Local time
- Yesterday, 19:56
- Joined
- May 16, 2008
- Messages
- 28
Hello all.
I have a query with a field A. The criteria for field A is dynamic with 10 user fields on a form, which the user can select only 1 or as many as 10 options to limit the search. After the user makes his/her selection, the form builds the criteria statement from the user choices and saves it all concatenated into one "Criteria" textbox. This "Criteria" textbox is what field A uses to limit the query. Now, here is the issue... lets take the example criteria:
(txtCCVar# are the 10 criteria fields the master criteria field builds from. The master criteria field is named: txtQueryCriteriaString)
When the content above is directly in field A's criteria slot in Design mode, it runs perfectly. However, if I link to that same content via...
...the query returns as empty. This usually works for me, so...is there something I am missing?
Thank you!
I have a query with a field A. The criteria for field A is dynamic with 10 user fields on a form, which the user can select only 1 or as many as 10 options to limit the search. After the user makes his/her selection, the form builds the criteria statement from the user choices and saves it all concatenated into one "Criteria" textbox. This "Criteria" textbox is what field A uses to limit the query. Now, here is the issue... lets take the example criteria:
(txtCCVar# are the 10 criteria fields the master criteria field builds from. The master criteria field is named: txtQueryCriteriaString)
Code:
Like "*" & Forms![Expenditures]![txtCCVar1] & "*" Or Like "*" & Forms![Expenditures]![txtCCVar2] & "*"
Code:
Forms!Expenditures!txtQueryCriteriaString
Thank you!