A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Access queries with dropdowns list for parameters?



 
 
Thread Tools Display Modes
  #1  
Old February 7th, 2005, 06:25 PM
Emily Bright
external usenet poster
 
Posts: n/a
Default Access queries with dropdowns list for parameters?

How can I make a query so that the criteria for the parameters are a drop
down list of the values in that field. For example, if the field is "Country
of Project", the user can choose from the available countries via a drop down
list rather than enter in "Kenya" in the criteria box. Also, is it possible
to let the user select more than one country (via using the Control botton
while selecting?) from this drop down list? I've been trying to figure this
out for days. ANY HELP would be greatly appreciated!! Thanks.
  #2  
Old February 7th, 2005, 06:45 PM
Rick Brandt
external usenet poster
 
Posts: n/a
Default

Emily Bright wrote:
How can I make a query so that the criteria for the parameters are a
drop down list of the values in that field. For example, if the
field is "Country of Project", the user can choose from the available
countries via a drop down list rather than enter in "Kenya" in the
criteria box. Also, is it possible to let the user select more than
one country (via using the Control botton while selecting?) from this
drop down list? I've been trying to figure this out for days. ANY
HELP would be greatly appreciated!! Thanks.


The self-prompting parameter feature in Access queries is very limited and
seldom used in a "production quality" application. If you want the user to
be able to select from a list you need to use a form and have the query
reference a ComboBox on the form for its parameter instead of using the
[Enter your parameter] method in the query.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


  #3  
Old February 14th, 2006, 11:49 AM posted to microsoft.public.access.queries
external usenet poster
 
Posts: n/a
Default Access queries with dropdowns list for parameters?



"Rick Brandt" wrote:

Emily Bright wrote:
How can I make a query so that the criteria for the parameters are a
drop down list of the values in that field. For example, if the
field is "Country of Project", the user can choose from the available
countries via a drop down list rather than enter in "Kenya" in the
criteria box. Also, is it possible to let the user select more than
one country (via using the Control botton while selecting?) from this
drop down list? I've been trying to figure this out for days. ANY
HELP would be greatly appreciated!! Thanks.


The self-prompting parameter feature in Access queries is very limited and
seldom used in a "production quality" application. If you want the user to
be able to select from a list you need to use a form and have the query
reference a ComboBox on the form for its parameter instead of using the
[Enter your parameter] method in the query.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com

How can I use a list box or a combo box in a form as a query parameter

  #4  
Old April 5th, 2009, 11:50 AM posted to microsoft.public.access.queries
Pirduan
external usenet poster
 
Posts: 2
Default Access queries with dropdowns list for parameters?

Hi Rick,

I have a similar problem. I've created a combo box with a list of topics
which the user can select.
In my Query window under Criteria, I've type: =
[Forms]![SelectCategory].[Combo2]

When I run my query, it does not capture the value i selected from the combo
box.

I tested my query using just a specific value; eg in Criteria, I keyed in
"*SAP*", and i return all the items which is related to SAP.

Care to help.

"Rick Brandt" wrote:

Emily Bright wrote:
How can I make a query so that the criteria for the parameters are a
drop down list of the values in that field. For example, if the
field is "Country of Project", the user can choose from the available
countries via a drop down list rather than enter in "Kenya" in the
criteria box. Also, is it possible to let the user select more than
one country (via using the Control botton while selecting?) from this
drop down list? I've been trying to figure this out for days. ANY
HELP would be greatly appreciated!! Thanks.


The self-prompting parameter feature in Access queries is very limited and
seldom used in a "production quality" application. If you want the user to
be able to select from a list you need to use a form and have the query
reference a ComboBox on the form for its parameter instead of using the
[Enter your parameter] method in the query.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com



  #5  
Old May 21st, 2009, 12:50 AM posted to microsoft.public.access.queries
PI
external usenet poster
 
Posts: 9
Default Access queries with dropdowns list for parameters?

Hi Pirduan,

You have to requery the combo box after you select the data. Use the On
Exit event: me.combo2.requery.

Kathleen

"Pirduan" wrote:

Hi Rick,

I have a similar problem. I've created a combo box with a list of topics
which the user can select.
In my Query window under Criteria, I've type: =
[Forms]![SelectCategory].[Combo2]

When I run my query, it does not capture the value i selected from the combo
box.

I tested my query using just a specific value; eg in Criteria, I keyed in
"*SAP*", and i return all the items which is related to SAP.

Care to help.

"Rick Brandt" wrote:

Emily Bright wrote:
How can I make a query so that the criteria for the parameters are a
drop down list of the values in that field. For example, if the
field is "Country of Project", the user can choose from the available
countries via a drop down list rather than enter in "Kenya" in the
criteria box. Also, is it possible to let the user select more than
one country (via using the Control botton while selecting?) from this
drop down list? I've been trying to figure this out for days. ANY
HELP would be greatly appreciated!! Thanks.


The self-prompting parameter feature in Access queries is very limited and
seldom used in a "production quality" application. If you want the user to
be able to select from a list you need to use a form and have the query
reference a ComboBox on the form for its parameter instead of using the
[Enter your parameter] method in the query.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com



  #6  
Old September 12th, 2009, 08:46 PM posted to microsoft.public.access.queries
imran
external usenet poster
 
Posts: 25
Default Access queries with dropdowns list for parameters?

Same problem here. Still unable to resolve it. kindly help.

"Pirduan" wrote:

Hi Rick,

I have a similar problem. I've created a combo box with a list of topics
which the user can select.
In my Query window under Criteria, I've type: =
[Forms]![SelectCategory].[Combo2]

When I run my query, it does not capture the value i selected from the combo
box.

I tested my query using just a specific value; eg in Criteria, I keyed in
"*SAP*", and i return all the items which is related to SAP.

Care to help.

"Rick Brandt" wrote:

Emily Bright wrote:
How can I make a query so that the criteria for the parameters are a
drop down list of the values in that field. For example, if the
field is "Country of Project", the user can choose from the available
countries via a drop down list rather than enter in "Kenya" in the
criteria box. Also, is it possible to let the user select more than
one country (via using the Control botton while selecting?) from this
drop down list? I've been trying to figure this out for days. ANY
HELP would be greatly appreciated!! Thanks.


The self-prompting parameter feature in Access queries is very limited and
seldom used in a "production quality" application. If you want the user to
be able to select from a list you need to use a form and have the query
reference a ComboBox on the form for its parameter instead of using the
[Enter your parameter] method in the query.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com



  #7  
Old September 12th, 2009, 10:07 PM posted to microsoft.public.access.queries
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Access queries with dropdowns list for parameters?

Are you certain that the combo box is bound to the column you think it is?
In otherwords, does [Forms]![SelectCategory].[Combo2] return the value you
think it should?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Imran" wrote in message
...
Same problem here. Still unable to resolve it. kindly help.

"Pirduan" wrote:

Hi Rick,

I have a similar problem. I've created a combo box with a list of topics
which the user can select.
In my Query window under Criteria, I've type: =
[Forms]![SelectCategory].[Combo2]

When I run my query, it does not capture the value i selected from the
combo
box.

I tested my query using just a specific value; eg in Criteria, I keyed in
"*SAP*", and i return all the items which is related to SAP.

Care to help.

"Rick Brandt" wrote:

Emily Bright wrote:
How can I make a query so that the criteria for the parameters are a
drop down list of the values in that field. For example, if the
field is "Country of Project", the user can choose from the available
countries via a drop down list rather than enter in "Kenya" in the
criteria box. Also, is it possible to let the user select more than
one country (via using the Control botton while selecting?) from this
drop down list? I've been trying to figure this out for days. ANY
HELP would be greatly appreciated!! Thanks.

The self-prompting parameter feature in Access queries is very limited
and
seldom used in a "production quality" application. If you want the
user to
be able to select from a list you need to use a form and have the query
reference a ComboBox on the form for its parameter instead of using the
[Enter your parameter] method in the query.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com





  #8  
Old September 14th, 2009, 03:49 PM posted to microsoft.public.access.queries
imran
external usenet poster
 
Posts: 25
Default Access queries with dropdowns list for parameters?

Here is the Solution.

http://www.microsoft.com/office/comm...2fsettings.xml
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
object dependency doesn't work / apprear on the View pulldown menu WylieCoyote General Discussion 10 December 15th, 2004 08:45 AM
Can mailing list in Works 4.5 be moved into Access Monica New Users 1 October 17th, 2004 08:35 AM
Bitwise And Sam Hobbs Running & Setting Up Queries 44 October 14th, 2004 04:19 AM
SQL Server 2000 Stored Procedures to MS Access 2000 Queries CS General Discussion 4 July 15th, 2004 03:27 AM
synchronizing form and list box Deb Smith Using Forms 8 June 21st, 2004 08:15 PM


All times are GMT +1. The time now is 09:45 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.