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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crosstab queries are confusing me! 1

Status
Not open for further replies.

snoopy75

Technical User
Joined
Aug 24, 2001
Messages
340
Location
US
I've done the search thing and read all I can on crosstab queries, and I just don't get it! I need to make a permissions table (or query, probably) with usernames in the row headers, and accounts in the column headers (or vice versa, I don't care)... like this:
Code:
      | Acct1 | Acct2 | Acct3 | Acct4
------|-------|-------|-------|-------
User1 |   X   |       |       |   X
User2 |       |   X   |       |   X
User3 |   X   |   X   |   X   | 
User4 |       |   X   |   X   |
I already have a table listing all of my users, and a table listing all of my accounts. I know which users need X's in which accounts, but I don't know where to put that information, and I'm not sure how to generate the above once the information is in place. Please forgive my confusion on what should probably be a basic concept. How do I get started on this, please? [sadeyes]

--Ryan
 
do you have a table that lists which people have which account?

Leslie
 
Kind of.... In my Users table now, I have a field called Accounts that contains a comma-delimited string of the accounts that each user is authorized to access. Is there a better way to store that information?
 
Ah... I knew there was some basic concept that I'd missed. [tongue] This reading will probably help me in more areas than this one. Thanks!!!
 
Glad to help and thanks for the star!

les
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top