Dirk,
Thanks so much for the response. This looks like exactly what I'm asking
for. Unfortunately, when I use this code, I get the following error message:
"Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another."
[proc#] is a text field as you assumed, so that's not the issue.
I have figured out a workaround, basically using the find method twice and
determining which result is what I want. It's clunky, but it will work. If
you have any other thoughts, please let me know. I could see this coming up
again in the future.
Thanks again,
Keith
"Dirk Goldgar" wrote:
> "Keith" <(E-Mail Removed)> wrote in message
> news:CF416F20-AEA6-4774-920E-(E-Mail Removed)...
> >I would like to know if there is a way to use the ADO Find method to find
> >one
> > of several values for a single column. See the following example:
> >
> > rstOpenJobProcess.Find "[proc#] = '940' or '941'"
> >
> > I would like to search for proc# '940' or '941'. I want to avoid using a
> > like statement in the criteria (such as [proc#] Like '94*') because I may
> > use
> > '942' for something else in the future that I would not want to search
> > for.
> > Is there a way to use the Find method in this way? Alternatively, is
> > there a
> > clever workaround?
>
>
> Try this:
>
> rstOpenJobProcess.Find "[proc#] In ('940', '941')"
>
> That's assuming that [proc#] is a text field, as your original code
> suggests.
>
> --
> Dirk Goldgar, MS Access MVP
> Access tips: www.datagnostics.com/tips.html
>
> (please reply to the newsgroup)
>