I'm trying to use a function to set the criteria for a query. When I use the following code, it works fine, where critType is my function:
critType = "D"
However, when I try to use any sort of operator, my query doesn't work:
critType = "Like '*'"
critType = "'D' OR 'H'"
Are there symbols that I need to use around operators in order to make them work when they are created in VBA? Any help would be GREATLY appreciated.
Thanks
critType = "D"
However, when I try to use any sort of operator, my query doesn't work:
critType = "Like '*'"
critType = "'D' OR 'H'"
Are there symbols that I need to use around operators in order to make them work when they are created in VBA? Any help would be GREATLY appreciated.
Thanks