PC Review


Reply
Thread Tools Rate Thread

How do i make one value depend on another?

 
 
=?Utf-8?B?Um9zZmx1cmc=?=
Guest
Posts: n/a
 
      29th Aug 2006
I am making a database and i have a dropdown list in my table, in this list
are values of another table. based on the value selected in this list i want
to change the values of the next dropdown list.

example:
when the first dropdown list contains : Audi | BMW | Ford
I want the next dropdown list to display only the models of the selected car.

Any help on this one?
 
Reply With Quote
 
 
 
 
ChrisM
Guest
Posts: n/a
 
      29th Aug 2006

"Rosflurg" <(E-Mail Removed)> wrote in message
news:35B30567-7D60-4745-9EB7-(E-Mail Removed)...
>I am making a database and i have a dropdown list in my table, in this list
> are values of another table. based on the value selected in this list i
> want
> to change the values of the next dropdown list.
>
> example:
> when the first dropdown list contains : Audi | BMW | Ford
> I want the next dropdown list to display only the models of the selected
> car.
>
> Any help on this one?


Just to get you started,

You need (at least 2) Tables:

Manufacturers
==========
ManufName
------
BMW
Ford
....
....

Models
ManufName Model
Ford Focus
Ford Mondeo
BWM 316
BMW 530
....
....


The First Dropdown list would be based on the Manufacuters Table.

The Second would be based on a query on the Models Table:

Select * from Models WHERE ManufName = ddlManufacturer.Text

Cheers,

Chris.


 
Reply With Quote
 
Lemark23@yahoo.com
Guest
Posts: n/a
 
      29th Aug 2006
Search string in this group:

Link combo boxes

There is a lot of material there.


Rosflurg wrote:
> I am making a database and i have a dropdown list in my table, in this list
> are values of another table. based on the value selected in this list i want
> to change the values of the next dropdown list.
>
> example:
> when the first dropdown list contains : Audi | BMW | Ford
> I want the next dropdown list to display only the models of the selected car.
>
> Any help on this one?


 
Reply With Quote
 
=?Utf-8?B?Um9zZmx1cmc=?=
Guest
Posts: n/a
 
      30th Aug 2006
Okay this helps a little.

I just have problems creating the needed query.

The Table with the manufacturers is named Brands and the needed column Brand
The table with the models is named Model and contains column Brand and
column Model
I need the model to be displayed in table Cars in column Model. but i need
to use the value from the Brand column in table Cars to do so.

How do i make a query for this?

"ChrisM" wrote:

>
> "Rosflurg" <(E-Mail Removed)> wrote in message
> news:35B30567-7D60-4745-9EB7-(E-Mail Removed)...
> >I am making a database and i have a dropdown list in my table, in this list
> > are values of another table. based on the value selected in this list i
> > want
> > to change the values of the next dropdown list.
> >
> > example:
> > when the first dropdown list contains : Audi | BMW | Ford
> > I want the next dropdown list to display only the models of the selected
> > car.
> >
> > Any help on this one?

>
> Just to get you started,
>
> You need (at least 2) Tables:
>
> Manufacturers
> ==========
> ManufName
> ------
> BMW
> Ford
> ....
> ....
>
> Models
> ManufName Model
> Ford Focus
> Ford Mondeo
> BWM 316
> BMW 530
> ....
> ....
>
>
> The First Dropdown list would be based on the Manufacuters Table.
>
> The Second would be based on a query on the Models Table:
>
> Select * from Models WHERE ManufName = ddlManufacturer.Text
>
> Cheers,
>
> Chris.
>
>
>

 
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
How do you make a gridview depend on a dataset that you create COHENMARVIN@lycos.com Microsoft ASP .NET 1 18th Jun 2008 02:19 AM
make query column values depend from another of it's columns Combo box type - help Microsoft Access 4 20th May 2008 08:52 AM
THE GOOGLE NETWORK GIVES ONLINE WORH TO OU.YOU GETPAID FOR YOURWORK.YOU MAY MAKE MILLIONS WITHIN HOUR AND IT ALL DEPEND UPON HOW MUCH WORKYOU DID.THE LINK IS BELOW jeee Windows XP Music 1 15th Mar 2008 02:40 PM
How to make the dot in different size depend on the data in a scatter chart? aleckuo@gmail.com Microsoft Excel Programming 2 16th Feb 2007 06:08 PM
How do I make a table cells visibility depend on a session variable? COHENMARVIN Microsoft ASP .NET 2 12th Sep 2005 09:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:32 PM.