S
Stuart
Hi all,
I've got a query which finds records for an 'advanced search' form - ie
users enter parameters on the form, and the query returns the records.
Parameters that are blank should be ignored. There are 7 parameters in all.
I made a query which worked beautifully, but after I saved and reopened it,
I found that Access had rewritten it into an awful mess. I suspect this is
because each of the parameters' criteria has ".... Or Like [formControlName]
Is Null".
The query is now too slow to be of any use. As I said, it worked fine
before. All the fields are indexed. Viewing the SQL for the query brings up
a horrible mess, which I'll happily post if anybody would like to see.
Is there any way to stop Access from rewriting my query? Does anybody have a
better solution than the way I'm doing it?
Thanks in advance,
Stuart
I've got a query which finds records for an 'advanced search' form - ie
users enter parameters on the form, and the query returns the records.
Parameters that are blank should be ignored. There are 7 parameters in all.
I made a query which worked beautifully, but after I saved and reopened it,
I found that Access had rewritten it into an awful mess. I suspect this is
because each of the parameters' criteria has ".... Or Like [formControlName]
Is Null".
The query is now too slow to be of any use. As I said, it worked fine
before. All the fields are indexed. Viewing the SQL for the query brings up
a horrible mess, which I'll happily post if anybody would like to see.
Is there any way to stop Access from rewriting my query? Does anybody have a
better solution than the way I'm doing it?
Thanks in advance,
Stuart