franksirvent
Programmer
Hi
I have an SQL 'sentence' which seems to be to long to run (2176 characters).
Is run from a form's VB and it gives me error 2176.
I've read in the forum that the maximum length is 2048
I've tried to shorten the sequence as much as possible (using FROM [My table] as g everywhere, etc) however the field names cannot be changed as this will means that I will have to change all the tables and will affect the whole application.
I don't see how I can shorten it anymore than already is.
HOWEVER I have copied the SQL sequence to Access Queries and IT RUNS FINE. It doesn't advise that the length is too long like it does from with VB.
1. Anyone knows why the difference (in runs in Access queries but not from VB) ?
2. Is it possible to 'transfer' the sequence to Access Queries, run it, then pass the result back to the form where the original SQL sequence is been run from ?
3. If question 2 is possible, how do I do it ?
Thanks in advance
I have an SQL 'sentence' which seems to be to long to run (2176 characters).
Is run from a form's VB and it gives me error 2176.
I've read in the forum that the maximum length is 2048
I've tried to shorten the sequence as much as possible (using FROM [My table] as g everywhere, etc) however the field names cannot be changed as this will means that I will have to change all the tables and will affect the whole application.
I don't see how I can shorten it anymore than already is.
HOWEVER I have copied the SQL sequence to Access Queries and IT RUNS FINE. It doesn't advise that the length is too long like it does from with VB.
1. Anyone knows why the difference (in runs in Access queries but not from VB) ?
2. Is it possible to 'transfer' the sequence to Access Queries, run it, then pass the result back to the form where the original SQL sequence is been run from ?
3. If question 2 is possible, how do I do it ?
Thanks in advance