Hi all
I have a couple of linked tables and I'm trying to run a query to put data on a form.
The tables are: Topic(ID, Subject, Detail, etc); Solution(ID, SolnNum, ShortDescrip) which both have 1-many joins with TopicSolution (ID, TopicID, SolutionID). A Topic can only have none, one or two Solutions.
How do I create one query that shows Topic.Subject, Topic.Detail, Topic.etc, Solution a, Solution b (with blanks if either don't exist)? Or do I have to run a second query to find Solutions from TopicSolution using the TopicID found in the original query (which performs a key-word search of Topic.Subject)?
I tried a CT query, but it made too many columns - since there are a large range of Solutions - and I don't know how to make the CrossTab look at the Solutions as generic 'Solution a' and 'Solution b'.
I'm currently going with the second query idea, as I don't know sql well enough to do it in one. Unfortunately, I think I'm gonna have to try and invisibly join two ListBoxes to put the data in one 'table' widget.
Am I making sense? i'm sure this can be done a bit more elegantly than my current attempt. Whether with a sub-query or as a cross tab, or anything less kludgy.
thanks for any assistance or pointers
mcalex
I have a couple of linked tables and I'm trying to run a query to put data on a form.
The tables are: Topic(ID, Subject, Detail, etc); Solution(ID, SolnNum, ShortDescrip) which both have 1-many joins with TopicSolution (ID, TopicID, SolutionID). A Topic can only have none, one or two Solutions.
How do I create one query that shows Topic.Subject, Topic.Detail, Topic.etc, Solution a, Solution b (with blanks if either don't exist)? Or do I have to run a second query to find Solutions from TopicSolution using the TopicID found in the original query (which performs a key-word search of Topic.Subject)?
I tried a CT query, but it made too many columns - since there are a large range of Solutions - and I don't know how to make the CrossTab look at the Solutions as generic 'Solution a' and 'Solution b'.
I'm currently going with the second query idea, as I don't know sql well enough to do it in one. Unfortunately, I think I'm gonna have to try and invisibly join two ListBoxes to put the data in one 'table' widget.
Am I making sense? i'm sure this can be done a bit more elegantly than my current attempt. Whether with a sub-query or as a cross tab, or anything less kludgy.
thanks for any assistance or pointers
mcalex