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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top