I use a function call in Access 97 to pass variable data to the criteria field of a query. Up to now, the function was evaluating to a single string, such as "Completed" or "Active" and it worked fine. Now I need to have the function pass two value separated by an 'And' or an ‘Or’ operator to the query, i.e. "Completed Or Active".
I have tried many ways of placing quotation marks around the text, but non has worked. If I cut and paste "Completed" Or "Active" in the criteria field, the query returns data, but when the function evaluates to "Completed" Or "Active" or even ""Completed" Or "Active"" nothing gets returned.
Any comment/suggestion is appreciated.
Thanks.
Shar
I have tried many ways of placing quotation marks around the text, but non has worked. If I cut and paste "Completed" Or "Active" in the criteria field, the query returns data, but when the function evaluates to "Completed" Or "Active" or even ""Completed" Or "Active"" nothing gets returned.
Any comment/suggestion is appreciated.
Thanks.
Shar