Hello
I am trying to pass a user created string into the criteria for a numerical field in a query using the [Form]![Field] method in the query criteria. I can see that the string assemble correctly so that the values passed look like (without the quotes) "3" or "3 Or 5" or "Is Not Null" but the query refuses to run. When I type these values in manually, it operates correctly, just not if I pass them to query criteria through a form. Is there some form or variable command I need to use to make these acceptable statements in the criteria of the query? Any help is really appreciated.
Thanks!
I am trying to pass a user created string into the criteria for a numerical field in a query using the [Form]![Field] method in the query criteria. I can see that the string assemble correctly so that the values passed look like (without the quotes) "3" or "3 Or 5" or "Is Not Null" but the query refuses to run. When I type these values in manually, it operates correctly, just not if I pass them to query criteria through a form. Is there some form or variable command I need to use to make these acceptable statements in the criteria of the query? Any help is really appreciated.
Thanks!