Two dropdownlist and two tables...

P

Paolo

Hi all!
I have a database that has 3 tables:

User, roles and roleUser.
The last one has only two fields, idUser and idRole, they are the
primary key of the table.
When inserting a new row in this table, I want to show two dropdown
lists, one with all the users and one with all the roles in the other
two tables. The problem is I can't figure out how to do this. I tried
with a dataadpter that croos-joins the two table, but this way for
example if I have 3 users and 2 roles I have each role 3 times and each
user 2 times...
Any idea?

Thank you

Paolo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top