I am not sure if this is possible, but I want to make a query for a combo box that uses the 'Institution' values from 2 different table's fields and only have the union query results show up if the ID matches the forms ID. I have this for non-union queries, but not sure on the SQL for this one. Here is my best quess so far - it doesn't work. The 2 tables are joined in a one (CTU Info) to many (CRS Info) - not sure if I needed to include that aspect and how...?
SELECT [CTU Info].[CTU Inst Name] as [Institution], [CTU Info].[CTU ID] FROM [CTU Info]
Where (([CTU Info].[CTU ID])=[Forms]![Main Admin Book Form]![CTU ID])
Union
[CRS Info].[CRS Institution], [CRS Info].[CTU ID] From [CRS Info]
WHERE (([CRS Info].[CTU ID])=[Forms]![Main Admin Book Form]![CTU ID]))
Order by [Institution];
Any ideas?
SELECT [CTU Info].[CTU Inst Name] as [Institution], [CTU Info].[CTU ID] FROM [CTU Info]
Where (([CTU Info].[CTU ID])=[Forms]![Main Admin Book Form]![CTU ID])
Union
[CRS Info].[CRS Institution], [CRS Info].[CTU ID] From [CRS Info]
WHERE (([CRS Info].[CTU ID])=[Forms]![Main Admin Book Form]![CTU ID]))
Order by [Institution];
Any ideas?