I've combined information from two tables, like so:
SELECT [Class Information].Date, [Class Information].[Class Name], [Class Information].[Credit?]
FROM [Class Information]
UNION SELECT [Note Information].Date, [Note Information].Note, [Note Information].[Eff Date]
FROM [Note Information];
Can I restrict the data by a field that hasn't been selected? [Class Information] and [Note Information] are both sub fields (one to many relationship) of the main customer table. Both [Class Information] and [Note Information] are ordered by a dependant customer number from the main customer table.
I'd like to do a query that uses the SQL statement above, but that asks for a customer number. It would then return only the class and note information that match the "customer number".
I would also like to order all of the information by Date. How would I do this, though, "ORDER BY [Note Information].Date AND [Class Information].Date"?
SELECT [Class Information].Date, [Class Information].[Class Name], [Class Information].[Credit?]
FROM [Class Information]
UNION SELECT [Note Information].Date, [Note Information].Note, [Note Information].[Eff Date]
FROM [Note Information];
Can I restrict the data by a field that hasn't been selected? [Class Information] and [Note Information] are both sub fields (one to many relationship) of the main customer table. Both [Class Information] and [Note Information] are ordered by a dependant customer number from the main customer table.
I'd like to do a query that uses the SQL statement above, but that asks for a customer number. It would then return only the class and note information that match the "customer number".
I would also like to order all of the information by Date. How would I do this, though, "ORDER BY [Note Information].Date AND [Class Information].Date"?