Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / October 2007

Tip: Looking for answers? Try searching our database.

using a drop-down field for a parameter value

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cloudbuster - 25 Oct 2007 19:49 GMT
I want my query to use one of it's own fields as a prompt before it runs.

The field in question is a combo box, so there are 4 choices one can make
when they are entering the data on a form. When I run the query, I want the
combo box to pop up and ask me to select a choice, and then show me only
records that have that choice in that field....

Suggestions?
Klatuu - 25 Oct 2007 20:24 GMT
A combo box is not a field.  It is a control.  If you need to limit the data
retrieved to the choices in a combo, you will need to execute the query in
the After Update event of the combo box.  Then you will need to add the
reference to the combo box in your query.  In the criteria column of the
field you want to filter on:

[Forms]![MyFormName]![MyComboBoxName]

Signature

Dave Hargis, Microsoft Access MVP

> I want my query to use one of it's own fields as a prompt before it runs.
>
[quoted text clipped - 4 lines]
>
> Suggestions?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.