hi to all
My code opens a DAO recordset based on the following SQL....
strSQL = "SELECT * FROM " & strTbl & " WHERE " & strTbl & ".[Factor] IN(" & arrF(0) & ", " & arrF(1) & ..... & arrF(12) & ")"
This works perfectly, but the array values must all be listed individually in the 'IN' clause. Whenever I use this code, I can have more or less values in the array. Here's my question...
Is there a way to simply use something like...
strSQL = "SELECT * FROM " & strTbl & " WHERE " & strTbl & ".[Factor] IN(" & arrF & ")"
I can't seem to get a syntax that works in the 'IN' clause..
Thank you
Vicky
My code opens a DAO recordset based on the following SQL....
strSQL = "SELECT * FROM " & strTbl & " WHERE " & strTbl & ".[Factor] IN(" & arrF(0) & ", " & arrF(1) & ..... & arrF(12) & ")"
This works perfectly, but the array values must all be listed individually in the 'IN' clause. Whenever I use this code, I can have more or less values in the array. Here's my question...
Is there a way to simply use something like...
strSQL = "SELECT * FROM " & strTbl & " WHERE " & strTbl & ".[Factor] IN(" & arrF & ")"
I can't seem to get a syntax that works in the 'IN' clause..
Thank you
Vicky