V
Vacation's Over
I am using Excel to query an Access mdb, The Ui allows user to choose a
number of parameters to the query. (field1 =, field2 < ....)
Problem: It would be easy for the resulting SQL generated by my VBA to
exceed 255 charater SQL limit.
What is the best way to segment a query / work around the SQL limit?
i can get the if/then and len(mySQL) to know when there is trouble but I am
not sure how to "futher Query" a recordset. Before I start I thought I'd ask??
Otherwise I was going to try by creating a new (temporary) table with first
SQL pass ,then use three SQL passes to refine (delete unwanted records) and
return the table. (in my case 3 passes should do it).
This just seems inefficient so ...any ideas???
number of parameters to the query. (field1 =, field2 < ....)
Problem: It would be easy for the resulting SQL generated by my VBA to
exceed 255 charater SQL limit.
What is the best way to segment a query / work around the SQL limit?
i can get the if/then and len(mySQL) to know when there is trouble but I am
not sure how to "futher Query" a recordset. Before I start I thought I'd ask??
Otherwise I was going to try by creating a new (temporary) table with first
SQL pass ,then use three SQL passes to refine (delete unwanted records) and
return the table. (in my case 3 passes should do it).
This just seems inefficient so ...any ideas???