Thanks Beetle.
I had already tried that. With that I get a list and that's not what I
want. I want a text box where you can copy and paste the search criteria,
e.g., 153004 or 165000 or 20001 or ....etc. Selecting from a list is too,
too laborious with several thousand part numbers.
>Thanks Beetle.
>I had already tried that. With that I get a list and that's not what I
>want. I want a text box where you can copy and paste the search criteria,
>e.g., 153004 or 165000 or 20001 or ....etc. Selecting from a list is too,
>too laborious with several thousand part numbers.
And typing scores of five or six digit numbers *isn't*!?
Where would the list values come from?
To do this using a textbox you will need to have VBA code to extract the list
of values (I'd suggest as comma separated text if possible) and construct the
SQL of a query using the IN() syntax:
WHERE PartNo IN("153004", "165000", "20001", ...)
This can't be done easily using a parameter query.
John W. Vinson [MVP]
Skip - 10 Jul 2007 21:52 GMT
Thanks John, tha's probably the easier way to address the need. I finally
ended up setting up an empty table that I joined to the query and then built
a macro to transfer the text from the text file to the table and query the
database. It works, just might not be the most efficient way to do it.

Signature
Skip_GA
> >Thanks Beetle.
> >I had already tried that. With that I get a list and that's not what I
[quoted text clipped - 15 lines]
>
> John W. Vinson [MVP]
John W. Vinson - 10 Jul 2007 23:35 GMT
>Thanks John, tha's probably the easier way to address the need. I finally
>ended up setting up an empty table that I joined to the query and then built
>a macro to transfer the text from the text file to the table and query the
>database. It works, just might not be the most efficient way to do it.
If the table is properly indexed, that may indeed be the best way! If it's
working for you, go with it.
John W. Vinson [MVP]