Bonediggler1
Technical User
Hi-
I have a table with 10,000 records. I use values from one field in this table to populate an "IN" clause in a SQL Pass-Through query.
However, as you know the IN clause can only handle 1000 iterations. As such, I would like to split the table into 10 sub tables and pass the values from each table into the IN clause one by one (pass in 1000 values, run the query, append results to a different table, clear the query, pass in the next 1000 values, etc etc.)
I am looking for a way to split this table via VBA. If anybody has any suggestions for handling the 1000 iteration limit on an IN clause, that would be helpful as well.
Thank you!
I have a table with 10,000 records. I use values from one field in this table to populate an "IN" clause in a SQL Pass-Through query.
However, as you know the IN clause can only handle 1000 iterations. As such, I would like to split the table into 10 sub tables and pass the values from each table into the IN clause one by one (pass in 1000 values, run the query, append results to a different table, clear the query, pass in the next 1000 values, etc etc.)
I am looking for a way to split this table via VBA. If anybody has any suggestions for handling the 1000 iteration limit on an IN clause, that would be helpful as well.
Thank you!