The error message returned from executing the me.RecordSource = stringSQL is:
"The setting for this property is too long". Run time error 2176.
I have two subreports that list the differences (added, deleted, and modified records) between two tables that the user selects. I used the "find unmatched" query wizard and modified the SQL to create SQL strings with the user selected table names used as the Record Sources for the subreports. With all the fields being compared, the SQL string gets lengthy (approx 2K characters). Selecting tables with short names works OK, but, the longer names do not. The table names are inserted into the SQL string multiple times and add proportionately to its length. I can always create temporary tables with short names and use these in the SQL string; but, that might create problems with concurrent users.
Any suggestions?
Thanks in advance
"The setting for this property is too long". Run time error 2176.
I have two subreports that list the differences (added, deleted, and modified records) between two tables that the user selects. I used the "find unmatched" query wizard and modified the SQL to create SQL strings with the user selected table names used as the Record Sources for the subreports. With all the fields being compared, the SQL string gets lengthy (approx 2K characters). Selecting tables with short names works OK, but, the longer names do not. The table names are inserted into the SQL string multiple times and add proportionately to its length. I can always create temporary tables with short names and use these in the SQL string; but, that might create problems with concurrent users.
Any suggestions?
Thanks in advance