Re: Multiselect parameter query
- From: "Allen Browne" <AllenBrowne@xxxxxxxxxxxxxx>
- Date: Thu, 18 Jan 2007 09:15:15 +0900
A parameter will only pop up its dialog once.
If you know how many parameters you might need, you could use multiple parameters on the one field - criteria such as:
[Enter first value] Or [Enter another value] Or [Enter a 3rd]
Realistically, it gets stale pretty fast answering each parameter every time. Much better to use a form where the user can use any number of boxes they need, and leave the others blank. You can then set up multiple unbound text boxes such as:
Surname: [ ]
or [ ]
or [ ]
and just itnore the boxes the user leaves blank. Alternatively, you can use a multi-select list box so the user can select multiple values. Ultimately, you create a string to use as the WhereCondition for OpenReport, as the Filter for your form, or even as the SQL of a QueryDef.
For the techniques to build the string on the fly from the controls the where the user entered something, see:
Search form - Handle many optional criteria
at:
http://allenbrowne.com/ser-62.html
For an example of the multi-select list box, see:
Use a multi-select list box to filter a report
at:
http://allenbrowne.com/ser-50.html
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Scott" <NoSpam-Scott.Xe@xxxxxxxxx> wrote in message
news:eegDJ8oOHHA.3900@xxxxxxxxxxxxxxxxxxxxxxx
I need to enter more than one entry for parameter query. Can someone advise me how to accomplish it.
Thanks,
Scott
.
- References:
- Multiselect parameter query
- From: Scott
- Multiselect parameter query
- Prev by Date: Re: I Need to replace many text area in a field with replace function.
- Next by Date: Re: Finding records by free text search
- Previous by thread: Multiselect parameter query
- Next by thread: RE: Archiving
- Index(es):
Relevant Pages
|
Loading