ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Multiple Criteria (https://www.excelbanter.com/excel-programming/364170-multiple-criteria.html)

jberv534

Multiple Criteria
 
Is there a way to prompt the user for a number of entries to use as the
criteria for an excel query: we want to prompt the user for a number of
zipcodes (not in series) to use as the query selection.

Tom Ogilvy

Multiple Criteria
 
Untested, but I would think You would cocatenate a sting of zipcodes into an
sql string like below (partial)
v = "22032,63124,22334,55444"

.. . .

" . . . where tablename.zip In (" & v & "), . . . "

--
Regards,
Tom Ogilvy


"jberv534" wrote:

Is there a way to prompt the user for a number of entries to use as the
criteria for an excel query: we want to prompt the user for a number of
zipcodes (not in series) to use as the query selection.



All times are GMT +1. The time now is 01:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com