Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Twin List box 1

Status
Not open for further replies.

Deadline

Programmer
Feb 28, 2001
367
US
Hello,

Don't know whether this is going to be a repeat post... Apologise me if it is..

I have a question for you...

I want to populate two list boxes, the second one linked to the first one. I know to accomplish this when we link two tables. But I am not sure how do I do it with a single table..

For instance, consider the following rows :

---------------------------------------------
EMP_ID EMP_NAME EMP_DESIGNATION
100 George Bush President
200 Bill Clinton President
300 Al Gore Vice President
400 Dick Cheyney Vice President
---------------------------------------------

I would like to have the designation in the first list box and the corresponding Names+Value in the 2nd list box. Can you please tell me how to do this ? Thank you...
RR

 
ya sure
u can do this thing using one table.for that u use sql query to retrive the data from the table.
if u click the "president" on the first list box,on click even u write a query to retrive the content like

sql="select name,value from table where designation='" & president &"'"
it shows the list of name and value for the relevent designation.
regards
webspy

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top