Hi Scott,
please ignore my previous posts. I have gone back and looked at the data structures from
this post of yours.
I tested this using your data structure from the link above and you have to do this with 2 queries, not just one, like this :
Query number 1 :
New Query, add the results table, view totals.
Field 1 = driver, group by
Field 2 = date, min
Save
Query Number 2 :
New Query, add the results table, add query number 1, do not view totals, link query 1 to the results table on both the driver field and the date field (do not change the link types, leave them as they would normally be)
Field 1 = driver, from query number 1
Field 2 = date, from query number 1
Field 3 = finish (? <- I think this was the variable used to record the finishing position), from the results table
Save and View.
Query number 2 above gives you the bare minimum of what you need - it has the driver, the date and the result from that driver's first race.
If you need additional info that's ok - just get query number 2 working first to make sure you have the bare minimum. Once this is working, try adding the extra fields until the query breaks.
When you get the "ambiguous join" error, it usually means the links between the tables and queries in the upper half of the query design screen form a circle and Access gets confused. If this is the case undo the last change you made and see if you can introduce the additional info into either the first query (e.g. the driver name) or even a third query (to display the track name etc - this would be linked through the event "date"). An alternative way to defeat the "ambiguous link" error is to prefix the variable names in your query with their source e.g. [driver] might become [your query name].[driver] or alternatively [finish] might become [your table name].[finish].
If, when you add additional tables into the query (to get the additional info), you feel the existing links are interfering with the query, then you can delete the link(s) between the tables, just for that query (not on the relationship screen).
HTH, Andrew.
