dbTalk Databases Forums  

Populating one dropdown depending on value selected in another

comp.databases.ms-access comp.databases.ms-access


Discuss Populating one dropdown depending on value selected in another in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Colin Ward
 
Posts: n/a

Default Populating one dropdown depending on value selected in another - 08-05-2003 , 12:05 PM






Hi I am banging my head against the wall over this one. I have an
unbound combobox on a form from which I want to be able to see the
various years for which we attended a particular trade show. What I do
is select the trade show name from a drop down and then I want the
years that we attended that show to automatically dropdown when I
select the Year dropdown. I use the same form to enter the events as I
do to edit them. What I cant figure out is the SQL necessary to
populate the year dropdown without getting multiple values in the show
name drop down.

Hope this makes sense

Colin

Reply With Quote
  #2  
Old   
Fredg
 
Posts: n/a

Default Re: Populating one dropdown depending on value selected in another - 08-05-2003 , 01:56 PM






Colin
Code the Combo Box Exit event:
[OtherCombo].RowSource = "Select AttendYear from YourTableName Where
YourTableName.Event = " & Me.ThisComboName

A Selection in the first combo will be filtered in the second.
--
Fred

Please reply only to this newsgroup.
I do not reply to personal e-mail.


"Colin Ward" <cward002 (AT) sympatico (DOT) ca> wrote

Quote:
Hi I am banging my head against the wall over this one. I have an
unbound combobox on a form from which I want to be able to see the
various years for which we attended a particular trade show. What I do
is select the trade show name from a drop down and then I want the
years that we attended that show to automatically dropdown when I
select the Year dropdown. I use the same form to enter the events as I
do to edit them. What I cant figure out is the SQL necessary to
populate the year dropdown without getting multiple values in the show
name drop down.

Hope this makes sense

Colin



Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.