I am opening a recordset with the basic code below. "Policy" is a string variable. What I would now like to do is to use the leading and lagging * wildcard and like to pull back similar records. I have tried seemingly every conceivable iteration of adding the "*" before and after policy to no avail. Anybody know the correct synatax?
Thank you!
This works, but it doesn't use like & wildcard symbol * for the string 'Policy' variable
FROM Master WHERE (master.policy_number)= " & "'" & Policy & "'", CurrentProject.Connection
Thank you!
This works, but it doesn't use like & wildcard symbol * for the string 'Policy' variable
FROM Master WHERE (master.policy_number)= " & "'" & Policy & "'", CurrentProject.Connection