Length Limits on MS Access Filters

G

Guest

I appear to be encountering length limit problems on a few SQL filters.
Following is an example. Any assist or workaround would be appreciated. I
tried using the wildcard around an individuals name and it does not work.


Sample Filter:

Where I am selecting the Region = New York and various employees that have
been assigned to tasks that are not complete.

(((Region="New York")) AND ((tblTask.AssignedTo="Last Name1, First Name"))
OR ((tblTask.AssignedTo="Last Name2, First Name2"))) AND ((Not
tblTask.Status="Completed"))
 
K

kingston via AccessMonster.com

What happens when you run this? Where are you running this from? Do you get
an error message? Are you sure of the parentheses locations? Should it look
like:

WHERE
(((Region="New York") AND (tblTask.AssignedTo="Last Name1, First Name"))
OR
((tblTask.AssignedTo="Last Name2, First Name2") AND (tblTask.
Status<>"Completed")))
 
G

Guest

Thank you for responding. I'm running this from the Filter Management Form
and receive the error 'Problem -- syntax error - missing operator' )]. I'm
verified all syntax there are no missing operators, it happens when the
statement gets to a certain length.
 
K

kingston via AccessMonster.com

Did you try the statement I posted earlier? I changed some things, and it
might work after you substitute the terms with real values.
Thank you for responding. I'm running this from the Filter Management Form
and receive the error 'Problem -- syntax error - missing operator' )]. I'm
verified all syntax there are no missing operators, it happens when the
statement gets to a certain length.
What happens when you run this? Where are you running this from? Do you get
an error message? Are you sure of the parentheses locations? Should it look
[quoted text clipped - 18 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top