K, I have a table where records are associated with groups. Like this:
RecID Desc Path Group
1 FirstItem c:\path FirstGroup
2 SecondItem c:\newPath FirstGroup
3 AnotherItem c:\path SecondGroup
4 SomeThing c:\path2 ThirdGroup
I am going to have another table that will collect options for orders which specify the groups they want, like this:
OrderID FisrtGroup(Yes/No) SecondGroup(Yes/No) ThirdGroup(Yes/No)
123456 0 -1 0
I want a query that will give me all the items and their paths from only the groups that were selected.
What's the best way to do this?
If I need to restructure the tables that is fine, I simply used these to demonstrate what I want.
RecID Desc Path Group
1 FirstItem c:\path FirstGroup
2 SecondItem c:\newPath FirstGroup
3 AnotherItem c:\path SecondGroup
4 SomeThing c:\path2 ThirdGroup
I am going to have another table that will collect options for orders which specify the groups they want, like this:
OrderID FisrtGroup(Yes/No) SecondGroup(Yes/No) ThirdGroup(Yes/No)
123456 0 -1 0
I want a query that will give me all the items and their paths from only the groups that were selected.
What's the best way to do this?
If I need to restructure the tables that is fine, I simply used these to demonstrate what I want.