Hi
I am stuck on a problem I'm not sure is possible but hope it is. I currently have a dynamic dropdown select box which simply takes the value from one field of an access database table. Using ASP and Access, The code I use simply selects all unique town/cities from a field called 'towncity'. An output would something like:
SELECT DISTINCT towncity from table order by towncity;
<option>Birmingham</option>
<option>Crewe</option>
<option>Preston</option>
<option>Wigan</option>
and so on. What I want to do is get unique data from 2 fields in the table (district and towncity)and join them into one dropdown. So that the out put would be similar to:
SELECT DISTINCT district, towncity from table order by <alphabetically?>;
<option>Batherton</option>
<option>Birmingham</option>
<option>Crewe</option>
<option>Haslington</option>
<option>Preston</option>
<option>Wigan</option>
<option>Willaston</option>
<option>Wybunbury</option>
Is there a way I can do this? I may want to extend this by combine 3 fields into one unique dropdown. ie, District, TownCity and County. Many thanks for anyone who can help me.
I am stuck on a problem I'm not sure is possible but hope it is. I currently have a dynamic dropdown select box which simply takes the value from one field of an access database table. Using ASP and Access, The code I use simply selects all unique town/cities from a field called 'towncity'. An output would something like:
SELECT DISTINCT towncity from table order by towncity;
<option>Birmingham</option>
<option>Crewe</option>
<option>Preston</option>
<option>Wigan</option>
and so on. What I want to do is get unique data from 2 fields in the table (district and towncity)and join them into one dropdown. So that the out put would be similar to:
SELECT DISTINCT district, towncity from table order by <alphabetically?>;
<option>Batherton</option>
<option>Birmingham</option>
<option>Crewe</option>
<option>Haslington</option>
<option>Preston</option>
<option>Wigan</option>
<option>Willaston</option>
<option>Wybunbury</option>
Is there a way I can do this? I may want to extend this by combine 3 fields into one unique dropdown. ie, District, TownCity and County. Many thanks for anyone who can help me.