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 / General 2 / May 2008

Tip: Looking for answers? Try searching our database.

Limiting choices in a Combo Box based on another field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RichKorea - 21 May 2008 16:17 GMT
When creating a record in a service table, I want to be able to select a
customer name in the Customer Field from a table of customers (which I can
do), and then based on that Customer Field, I want to limit the choices of
Customer Locations to the locations that are associated with that customer.  
I have a Customer Location table that lists Customer A: Location 1, Customer
A: Location 2, Customer B : Location Q, etc.  

Is my table setup the optimum way to do this (service table, customer table,
and location table)?

How can I use the Customer name that's selected in the Customer Field to
restrict the locations to the ones that are valid just for that customer?  I
was able to use Query Builder from Row Source to connect the two fields, and
it worked once, but if I changed the Customer Field, I the list of locations
in the combo box didn't change, and then when I went back a little while
later, I would get the same mixed list of locations no matter which customer
I selected.

I'm running Access 2003, and this is the first time I've tried to setup a
database with a connected field, so I may be using the wrong terms to
describe what I'm trying to do.

Thanks
KARL DEWEY - 21 May 2008 16:26 GMT
Search the newsgroup on 'Cascading Combos'.
Signature

KARL DEWEY
Build a little - Test a little

> When creating a record in a service table, I want to be able to select a
> customer name in the Customer Field from a table of customers (which I can
[quoted text clipped - 19 lines]
>
> Thanks
RichKorea - 24 May 2008 07:23 GMT
Thanks Karl for the guidance.  The search took me to a post "Cascading combo
boxes in a subform", started by Names, that lead me to an example on
Microsoft at http://office.microsoft.com/en-us/access/HA011730581033.aspx 
that I was able to build off of to get what I wanted.  It took me a while to
figure out about setting the columns to 2 and the column widths to 0";1" so
the data I wanted would display and not the key, but now I got what I want.  
I also figured out that I can put a value in a text box with a related value
from the query by pulling the value from column 3 of the combo box.

> Search the newsgroup on 'Cascading Combos'.
>
[quoted text clipped - 21 lines]
> >
> > Thanks
 
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.