-----Original Message-----
Dear Anon:
Same answer. Use dynamic SQL or SP/UDF with parameters. We've
experienced that recordsets are slow, as you have. They are also
limited to just one criteria. You can add AND or OR and another
criterion like you could in an MDB. Just too restrictive as well.
So, we just don't use them. There are alternatives that don't have
these drawbacks.
Usually, its dyanamic SQL we prefer. It gets pretty fast to code
after a bit of practice.
Writing ADPs required us to experiment with various techniques. We
have found some that work well. Using those, we have been able to
build whatever we wish. This is a very empirical process. We're very
happy with ADPs the way we use them. I'm trying to pass on the
results of some of that experience.
Thanks Tom
The reason I was trying to do it is that I am using the
rst.Find method in code and it is very slow. Any ideas? I
have indexed the field that I am searching.
-----Original Message-----
Dear anonymous:
There is no direct equivalent method. Use dynamic
queries, where you
build the SQL text in code, or use Stored Procedure or
User Defined
Function parameters. Again you must code to pass the
parameters.
This is a significant part of the task of moving to
ADPs. It will be
slightly painful at first, much easier after doing it a
few times.
Overall, it's not a big deal. It may seem so at first.
Tom Ellison
Microsoft Access MVP
Ellison Enterprises - Your One Stop IT Experts
On Fri, 17 Sep 2004 01:42:52 -0700,
What is the syntax for referencing a control on a form
in
the criteria box of a query when using Access 2003
Projects(Adp). The syntax for MDB is forms![Mainform]
[subform]![controlname] but this doesn't work for adp.
I
really need to get it to work.
.
Tom Ellison
Microsoft Access MVP
Ellison Enterprises - Your One Stop IT Experts
.