Thank you ItsMe
Unfortunately, I can't get my head around using the Group By function, as my reading around seems to imply it needs some sort of sum or count, and I don't want that.
Just to clarify, my data is structured like the following...
ID Date Some other fields
and I have several tables of a similar structure, each with different "other fields" depending on the test.
I want to populate a combobox with all of the dates from each table where the ID matches a user input, but without displaying each date in the list more than once. For instance, in one table, equipment ID A1 might have results on dates 1/1/11 and 2/1/11 and in another table A1 might have results for 2/1/11 and 3/1/11. I want my combobox to contain the dates 1/1/11, 2/1/11 and 3/1/11 only when the user selects A1 as the equipment ID.
My current SQL code is
Code:
SELECT DISTINCT TableA.[SDate], TableB.[SDate], TableC.[SDate]FROM TableA, TableB, TableC;
which doesn't work (obviously). I am unsure of how to use a WHERE when I am checking the criteria in several tables and ORDER BY as I am not clear on which part to ORDER BY