I have a textbox on a form for users to use to enter one or a series of contracts, separated by commas. (txtEntry)
I have another invisible textbox I use to hold the value of the first textbox in a query-friendly format, so the first box might hold "1,2" and the second holds "1 or 2." (I just do a string manipulation to get there) So that's txtQueryValue.
I know that the variable "1 or 2" is successfully passed to the query (which I'm manipulating in design view, not code) because I added txtQueryValue in as an expression and it will show up in the query results.
I know that typing "1 or 2" directly into the query into the query will return the results I want, because I tried it and it did.
However, when I pass txtqueryvalue into the 'contracts' field in the query, I don't get any results.
This is kind of driving me nuts. Can anyone explain what might be the problem, or what might be a better way to accomplish what I'm trying to do, which is just allow the user to pass multiple contracts to the query?
Thanks very much
I have another invisible textbox I use to hold the value of the first textbox in a query-friendly format, so the first box might hold "1,2" and the second holds "1 or 2." (I just do a string manipulation to get there) So that's txtQueryValue.
I know that the variable "1 or 2" is successfully passed to the query (which I'm manipulating in design view, not code) because I added txtQueryValue in as an expression and it will show up in the query results.
I know that typing "1 or 2" directly into the query into the query will return the results I want, because I tried it and it did.
However, when I pass txtqueryvalue into the 'contracts' field in the query, I don't get any results.
This is kind of driving me nuts. Can anyone explain what might be the problem, or what might be a better way to accomplish what I'm trying to do, which is just allow the user to pass multiple contracts to the query?
Thanks very much