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!

combining multiple records to 1

Status
Not open for further replies.

moernoo

Technical User
Nov 8, 2008
4
BE
Hey,

I have the following problem: (in fact it's a bit more complicated but i've tried to simplify it in this example)

i've a table with users that gives every user an unique ID. i want to give each user multiple properties. i want these properties chosen from another table.

this is the structure i had in mind:

TblMain:
ID | Name |
------------------
1 | Jos
2 | Jef

TblProperties:
ID | PropertiesID
----------------------------
1 | 1
1 | 2
2 | 1

TblProperties:
PropertiesID | Properties
------------------------------------------
1 | Tall
2 | Bold


so in this example:
- user 1 = Jos = Tall and bold
- user 2 = Jef = Tall

My purpose: getting a table like :
Name| Properties
----------------------------------
Jos | Tall + Bold
Jef | Tall

Does somebody knows how to do this? or has a better way of structuring my tables?

thanks very much !!!
 
See:
Fundamentals of Relational Database Design

"My purpose: getting a table like :
Jos | Tall + Bold

You don't want a table like above. Your three main tables are correctly normalized. You would then run a query to get the structure you want.

See:
faq701-4233
 
Thank you for your reply !

that was exactly what i needed, i did not know such custom functions where possible in access !


thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top