
Signature
The next line is only relevant to Microsoft''s web-based interface users.
If I answered your question, please mark it as an answer. It''s useful to
know that my answer was helpful
HTH, good luck
> I have a table of members all of whom have a unique membership number. I
> need a query to pull records on several members at once by the membership
[quoted text clipped - 4 lines]
>
> Thanks!
OK good, now how do I run that query from a form that my non-Access
knowledgable users can utilize?
> I think that what you looking for is
>
[quoted text clipped - 8 lines]
> >
> > Thanks!
Hi Ofer,
no, if you want to put the criteria in a textbox, it is necessary to use the
Like or the Instr function.
bye

Signature
Giorgio Rancati
[Office Access MVP]
> I think that what you looking for is
>
> Select * from TableName Where memberNum In ( (1131, 1326, 3815)
giorgio rancati - 10 Nov 2005 07:24 GMT
> Hi Ofer,
> no, if you want to put the criteria in a textbox, it is necessary to use the
> Like or the Instr function.
I see that it was not asked for :-)
bye
--
Giorgio Rancati
[Office Access MVP]
Ofer - 10 Nov 2005 07:26 GMT
Hi Giorgio
For thts certain criteria, where there are few nubers to filter on, and
there are no rules or order, I can't see how you can use anything but the In()
If we need to use the criteria from a Text box, to display the query with
the right filter, I would change the SQL of the Query after the user enter
the critera 1,4,8,22,44,66
Application.CurrentDB.QueryDefs("QueryName").Sql = "Select * From TableName
Where FieldName In (" & Me.TextBox & ")"
> Hi Ofer,
> no, if you want to put the criteria in a textbox, it is necessary to use the
[quoted text clipped - 4 lines]
> >
> > Select * from TableName Where memberNum In ( (1131, 1326, 3815)