Can anyone help me with this? I am trying to work out the quotes, syntax etc to set a rowsource on a form using VBA. The SQL rowsource would look something like:
SELECT colA, colB, colC FROM tbl
WHERE colA Like '% & form.control & %' ORDER BY colA
I have tried all sorts of combinations and I am not getting anywhere. I've read somewhere about using a parameterized stored procedure. Is that the answer, if so how to I go about creating/using this?
Cheers, Mark.
SELECT colA, colB, colC FROM tbl
WHERE colA Like '% & form.control & %' ORDER BY colA
I have tried all sorts of combinations and I am not getting anywhere. I've read somewhere about using a parameterized stored procedure. Is that the answer, if so how to I go about creating/using this?
Cheers, Mark.