Click here to Skip to main content
15,886,723 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi there,

I have a database in access and it contains 10 tables.

I have managed to get a selected table to disply on a webpage using Visual Studio, the Access data source, and the Grid view.


in the grid view I have selected one out of the many tables I have. This displays without a problem

What I am looking to do now is to have the option for the user to select individual fields then the table will reflect the fields selected.

i.e

there is a table with 4 colomns.

1.Car make
2.Car model
3.Engine size
4.Car colour

I presume you will need to use the drop down list.

So in the ist dropdown list the user selects the car make. this will then inturn display all the cars of that make in the grid.

The user can then go on to select a car model, which inturn will select all the cars of that make and model.

the same goes for engine size and colour.

I would like the database to have this functionality for no matter what the select, i.e if they select the car colour first , the table will then show all the cars/makes/models/engine size of that colour.

What is the best way of doing this with access and asp.

Thank you
Posted

My suggestion, based on what I've seen to work:

Have a 'chain' of combo or list boxes. Leave only the first one enabled, and get the user to select an item. Make this cause a post-back or an AJAX call (I personally think AJAX is better as it's less 'jarring') and update the next in the chain with the possible answers. Repeat until done.

A good example I've seen is the category select tool in Ebay (assuming they haven't changed it).

Edit:

Suggested Resources:

http://www.w3schools.com/[^] - An excellent website to start learning many browser technologies
 
Share this answer
 
v2
@ Tony Richards

Thank you, that does seem like the most appropriate way of doing so. The problem is I have no idea about AJAX or many other programming languages. I am a massive beginner and dont know how or where to start :(
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900