Is is possible to use EXISTS with .findnext?

M

markmarko

I have some procedures for finding and filtering. In filtering, I can use
EXISTS in the WHEREish part. The same code used in an rs.findnext results in
an error "Unknown or invalid field reference." Is there a way around this?

The rs was cloned from the SalesOrder form, which does not have this data in
it's recordsource, so an EXISTS statement must be used.

Thoughts?
 
K

Klatuu

You are mixing apples and oranges here. EXISTS is used in SQL
..FindFirst is a DAO recordset statement.

If you can describe what it is you want to do, perhaps we can help with the
how to do it.
 
M

markmarko

Yes, but when using .findfirst, one must include criteria, which according to
msdn is "A String used to locate the record. It is like the WHERE clause in
an SQL statement, but without the word WHERE."
 

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