PC Review


Reply
Thread Tools Rate Thread

How do i do criteria on a drop down box

 
 
=?Utf-8?B?R3JhbnQ=?=
Guest
Posts: n/a
 
      14th May 2006
ive made a drop box with all car makes and now i want to make a model drop
box so when you select you make (Ford for example) when youwent to choose the
model it would have all fords models.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?V2F5bmUtaW4tTWFuY2hlc3Rlcg==?=
Guest
Posts: n/a
 
      14th May 2006
Try this link as it gives a detail method of doing this

http://support.microsoft.com/kb/97624/en-us



--
Wayne

If you feel this answer has been useful please check the "was this post
helpful" so I get some feedback. Thanks.



"Grant" wrote:

> ive made a drop box with all car makes and now i want to make a model drop
> box so when you select you make (Ford for example) when youwent to choose the
> model it would have all fords models.

 
Reply With Quote
 
Tom Ellison
Guest
Posts: n/a
 
      14th May 2006
Dear Grant:

That sounds right to me.

This is sometimes called "drill down" or "cascading combo boxes".

There are two ways I can suggest to do this.

1. On the click event of the Makes combo box, write the SQL for the Models
combo box so it filters for the selected model.

2. Have the query for the Models reference the Makes combo box so it
filters similarly.

This presumes a proper data structure, which you did not discuss.

A problem arises if a make and model have already been selected, and the
make is subsequently changed. This would almost certainly give you a
make/model combination that is invalid. The click event of the Make combo
box should set the value of the Model combo box to null.

In some circumstances, other than make/model, it is possible the lower level
combo (your model) could have the same values for multiple cases of the
value in the primary level combo box. This would be like having Pinto for
both Ford and Chevy. Probably won't happen for automobiles, but does happen
in many other cases. In this case, I usually check whether the lower level
combo value is valid for the new primary level combo's value, and null it
only if it doesn't exist.

That is, I hope, a modest primmer on how this can be done.

Tom Ellison


"Grant" <(E-Mail Removed)> wrote in message
news:88747E6A-6163-4265-859A-(E-Mail Removed)...
> ive made a drop box with all car makes and now i want to make a model drop
> box so when you select you make (Ford for example) when youwent to choose
> the
> model it would have all fords models.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
autofilter line for drop down criteria Doc Microsoft Dot NET 0 5th Jun 2008 07:07 PM
Using Criteria and a Drop down Box =?Utf-8?B?bmV3YWdhaW4=?= Microsoft Access Queries 2 8th Sep 2006 08:58 PM
Drop down box for criteria Barry Microsoft Access Queries 1 24th Jun 2004 08:02 AM
Help: criteria with drop-down box Chengfu Microsoft Access Queries 0 24th Sep 2003 08:09 PM
Using drop down for database search criteria John Simpson Microsoft Frontpage 1 30th Jul 2003 03:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:42 PM.