Andi Plotsky wrote:
Quote:
Can someone please tell me - what's the problem with the syntax of
the
Select portion of the call to the ChangeQueryDef function. My " "
marks are
off - but I can't figure out where -
...
Thanks!
Andi |
Here's what I tried:
I changed the creation of strSQL to use commas instead of OR's.
where Q12 IN (" & strSQL & ")" & " OR Q13 IN (" & strSQL & ")" & ...
created:
where Q12 IN ('12','15') OR Q13 IN ('12','15') ...
Note that if Q12 and Q13 are Long fields you should create strSQL so
that the final string looks like:
where Q12 IN (12,15) OR Q13 IN (12,15) ...
These queries ran correctly in my test examples.
James A. Fortune