I am using MS Access database, where I need to pass parametrized like query. Actually MS Access uses like in this format ... LIKE '[par1]' {par1 is a parameter in ms-access-query} So I need a way to use parametrized like query with wildcard support. For example, if user enter 325 for par1, sql-command text in condition is ... WHERE field1 Like "*325*"

有帮助吗?

解决方案

Have you tried following:

LIKE "*" & [par1] & "*"
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top