G
Guest
MS Access 2K, Windows XP
====================
Hello there,
I have a form where I specify criteria to display records. The records are
displayed in a list on the same form. The user can then select records
displayed in the list and run a report on those selected records.
I used a combination of code from here:
http://www.mvps.org/access/forms/frm0007.htm
and here:
http://allenbrowne.com/ser-50.html
to construct my strWhereCondition string for opening the report.
It all works fine and the report opens and displays the records selected
from the list (I tried by selecting 4-5 records),
EXCEPT when I tried to select all the records (95 or so) displayed in the
list, I got a run-time error that said "filter too long".
I've checked the ng (forms and reports) to find an answer, without success.
The WHERE string is in the form "[queryname]![fieldname] = <selected list ID
1> OR [queryname]![fieldname] = <selected list ID 2> OR ......", so that
does add 38 or so character per ID just for the name of the field.
Is there another way to skin this cat?
Next, I'll try constructing a list of IDs and try the " WHERE [ID] IN
(list)" and see if that works.
But, if you have a solution to this problem, please let me know.
Thanks.
-Amit
====================
Hello there,
I have a form where I specify criteria to display records. The records are
displayed in a list on the same form. The user can then select records
displayed in the list and run a report on those selected records.
I used a combination of code from here:
http://www.mvps.org/access/forms/frm0007.htm
and here:
http://allenbrowne.com/ser-50.html
to construct my strWhereCondition string for opening the report.
It all works fine and the report opens and displays the records selected
from the list (I tried by selecting 4-5 records),
EXCEPT when I tried to select all the records (95 or so) displayed in the
list, I got a run-time error that said "filter too long".
I've checked the ng (forms and reports) to find an answer, without success.
The WHERE string is in the form "[queryname]![fieldname] = <selected list ID
1> OR [queryname]![fieldname] = <selected list ID 2> OR ......", so that
does add 38 or so character per ID just for the name of the field.
Is there another way to skin this cat?
Next, I'll try constructing a list of IDs and try the " WHERE [ID] IN
(list)" and see if that works.
But, if you have a solution to this problem, please let me know.
Thanks.
-Amit