Hello.
I'm trying to write a SQL statement to be used in VBA that will search for a keyword and make sure there are no alphanumeric characters immediately following the keyword. For example:
"Business Planning Forms" -> should not be a result
"Draft Plan Sheet" -> should be a result
"Dock Plan, Boat Materials" -> should be a result
My current SQL query is the following:
SELECT * from [file] where [file].[Title] like "*plan[!a-zA-Z0-9] *";
However this does NOT work. Can someone tell me why and how to make it work?
I also tried -> like "*[!a-zA-Z0-9]plan[!a-zA-Z0-9]*"
-Sofia
I'm trying to write a SQL statement to be used in VBA that will search for a keyword and make sure there are no alphanumeric characters immediately following the keyword. For example:
"Business Planning Forms" -> should not be a result
"Draft Plan Sheet" -> should be a result
"Dock Plan, Boat Materials" -> should be a result
My current SQL query is the following:
SELECT * from [file] where [file].[Title] like "*plan[!a-zA-Z0-9] *";
However this does NOT work. Can someone tell me why and how to make it work?
I also tried -> like "*[!a-zA-Z0-9]plan[!a-zA-Z0-9]*"
-Sofia