Re: How to get around "filter too long" run-time error?
- From: "Amit" <Amit@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 1 Jul 2005 15:04:02 -0700
"John Griffiths" wrote:
<snip>
> Could you show your "OpenReport " line?
>
> There is a parameter "FilterName" and a parameter "WhereCondition".
> WhereCondition has a max of 32768 characters
> 32768 / 95 gives you over 340 characters per selected id to play with.
This is what I found when I googled the error number:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;207615
But, now I'm up against another wall.
=======================================================
Method 1
Instead of using the wherecondition argument, use the filtername argument of
the OpenReport method to pass the name of a saved query. This method allows
you to filter a report without limitation on the size of the WHERE clause.
=======================================================
How do I go about doing this from my current set-up?
How do I save a query from the form with the selected list items?
Here's what I think the steps would be:
1. In the OnClick event of the button on the form that runs the report,
somehow save/specify a query with the selected list items.
2. Open the report with the name of the query.
I guess my issue is I have no idea how to do 1.
Any help would be appreciated.
Thanks.
-Amit
-Amit
.
- Follow-Ups:
- Re: How to get around "filter too long" run-time error?
- From: John Griffiths
- Re: How to get around "filter too long" run-time error?
- References:
- How to get around "filter too long" run-time error?
- From: Amit
- Re: How to get around "filter too long" run-time error?
- From: John Griffiths
- How to get around "filter too long" run-time error?
- Prev by Date: Re: Combining data from three fields on same tab/page in2 single
- Next by Date: Re: Change to combo box stops code from returning records
- Previous by thread: Re: How to get around "filter too long" run-time error?
- Next by thread: Re: How to get around "filter too long" run-time error?
- Index(es):
Relevant Pages
|