just in case those are real field names, Name is a reserved word and should not be used for an object name.
I agree with the ordering sentiment. I know you can get something that resembles the expressed goal using a Select query, but if it uses aggregate functions (such as First) you can't use it in an update query, so I don't see that working. You'd probably have to create a table with it first:
Code:
SELECT [table2].[Name] & " " & [table2].[color] AS NameColor, Min(Table2.Part) AS MinOfPart, Table1.SpendEst
FROM Table1 INNER JOIN Table2 ON (Table1.Color = Table2.Color) AND (Table1.Name = Table2.Name)
GROUP BY [table2].[Name] & " " & [table2].[color], Table1.SpendEst, Table2.Name, Table2.Color;
Name |
Color |
MinOfPart |
SpendEst |
Arrow |
White |
Door |
2000 |
Dart |
Red |
Handle |
3000 |
Dart |
Yellow |
Door |
2500 |
This might appear to work, but as June7 says, there's no guarantee of the order of a set of table records. You'd have to use a select query with an Order By clause or have a table field expressly for ordering to be safe.