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

Count or Group or both

Status
Not open for further replies.

fileman1

Technical User
Feb 7, 2013
152
GB
I hope this will be my last bit of SQL for a while.

I am trying to fill a table with the following

MAIN.ID - JUNCTION1.ID1 KEYWORDS,KEYWORD
19 19 ACCESS,POWERPOINT,WORD
20 20 ACCESS
21 21 POWERPOINT

In other words, it combines a comma separated field containing relevant keywords for each record

Code:
 MySql = "SELECT MAIN.ID1, JUNCTION1.ID1, JUNCTION1.ID2, Keywords.Keyword"
 MySql = MySql & " FROM MAIN INNER JOIN (JUNCTION1 INNER JOIN Keywords ON JUNCTION1.KeywordID"
 MySql = MySql & " = Keywords.KeywordID) ON MAIN.ID1 = JUNCTION1.ID1"
 Me!L12.RowSource = MySql
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top