Expand|Select|Wrap|Line Numbers
- SQLQuery="Select tblGreetingcategories.categoryname,tblGreetingPostCards.categoryid, tblGreetingPostCards.PostCardID,tblGreetingPostCards.DefaultHeadline,tblGreetingPostCards.CardDescription,tblGreetingPostCards. from tblGreetingcategories,tblGreetingPostCards WHERE CardDescription IN (SELECT CardDescription FROM tblGreetingPostCards WHERE PostCardID = " & Clng(lngPostCardID) & ")"
To simplify. When someone clicks a carddescription, this query should return all other people with the same description. It does that. I just need it to include the categoryname in which they are too, as a link back to their main category. At the moment it does return the name, but like I ecplained above it duplicates each record, the number equal to the number of categories.
Strange!!
Any help would be great.
Thanks
Richard