I have a table that looks like this:
State, Location, Source, Date
TX, Houston, 1, 1/1/05
TX, Houston, 1, 12/1/04
TX, Houston, 2, 2/1/05
TX, Houston, 2, 3/1/05
TX, Dallas, 1, 1/1/05
etc.
Basically I want to be able to go through the table and find the latest date for each location and for each source, so based on the above I would only return:
TX, HOuston, 1, 1/1/05
TX, Houston, 2, 3/1/05
TX, Dallas, 1, 1/1/05
Is there a way to do this without breaking it up into multiple queries or stepping through the records in VBA?
State, Location, Source, Date
TX, Houston, 1, 1/1/05
TX, Houston, 1, 12/1/04
TX, Houston, 2, 2/1/05
TX, Houston, 2, 3/1/05
TX, Dallas, 1, 1/1/05
etc.
Basically I want to be able to go through the table and find the latest date for each location and for each source, so based on the above I would only return:
TX, HOuston, 1, 1/1/05
TX, Houston, 2, 3/1/05
TX, Dallas, 1, 1/1/05
Is there a way to do this without breaking it up into multiple queries or stepping through the records in VBA?