P
Patrick Briggs
Hi,
I'm using Access 2003 on a Windows XP box.
I've got a table of individuals donors and organization donors. I don't
have a donor type field to work off of. I do have the LastName column though
- it's has legitimate last names for the Individuals and then full
organization names for Organizations.
I'm trying to create a query that can pick out the organization donors
based on criteria in a WHERE clause. For example:
WHERE (((Donor_Lengths_tbl.Ln) Like "*trust*")) OR (((Donor_Lengths_tbl.Ln)
Like "*temple*")) OR (((Donor_Lengths_tbl.Ln) Like "*church*"))
etc. My WHERE clause above contains 150 or statements
I run into the error:
"the expression you entered exceeds the 1,024-character limit for the query
design grid"
I also find that the WHERE clause coincidentally doesn't seem to work - pick
up the records I'm looking for based on the WHERE clause.
I'm working in SQL view to create this query so I don't care about not being
able to see it visually in Query Design Grid, but I suspect this has
something to do with my query not working.
1) Is there an Access limitation that will cause the the query to give
unpredicable results if I exceed that limitation?
2) Is there a better way to do this? For example, I did create a table
with all the criteria (150 of 'em) - i.e. trust, church, temple, etc. Doing
this off a table would be great because it would get around this WHERE clause
limitation if it exists AND it would make for easier updating of the WHERE
clause criteria.
Hope somebody can shed some light.
Regards,
Patrick Briggs,
Pasadena, CA
I'm using Access 2003 on a Windows XP box.
I've got a table of individuals donors and organization donors. I don't
have a donor type field to work off of. I do have the LastName column though
- it's has legitimate last names for the Individuals and then full
organization names for Organizations.
I'm trying to create a query that can pick out the organization donors
based on criteria in a WHERE clause. For example:
WHERE (((Donor_Lengths_tbl.Ln) Like "*trust*")) OR (((Donor_Lengths_tbl.Ln)
Like "*temple*")) OR (((Donor_Lengths_tbl.Ln) Like "*church*"))
etc. My WHERE clause above contains 150 or statements
I run into the error:
"the expression you entered exceeds the 1,024-character limit for the query
design grid"
I also find that the WHERE clause coincidentally doesn't seem to work - pick
up the records I'm looking for based on the WHERE clause.
I'm working in SQL view to create this query so I don't care about not being
able to see it visually in Query Design Grid, but I suspect this has
something to do with my query not working.
1) Is there an Access limitation that will cause the the query to give
unpredicable results if I exceed that limitation?
2) Is there a better way to do this? For example, I did create a table
with all the criteria (150 of 'em) - i.e. trust, church, temple, etc. Doing
this off a table would be great because it would get around this WHERE clause
limitation if it exists AND it would make for easier updating of the WHERE
clause criteria.
Hope somebody can shed some light.
Regards,
Patrick Briggs,
Pasadena, CA