R
Rli
I have a table that is giving me big problems....
Its definition is simple:
table name: table1
field1 name: [table1-id] (autonumber)
field2 name: [bail-id] (reference to an other table)
field2 name: [amount] (money)
field3 name: [amountdate] (a date field)
so the problem is that there may be several records with the same [bail-id]
but a different [amount] and/or [amountdate].
for example:
[table1-id],[bail-id],[amount],[amountdate]
record1 1 3 10.10 10-09-2005
record2 2 3 12.00 11-09-2005
record3 3 2 9.00 12-09-2005
record4 4 2 10.00 09-09-2005
Now i want to find for each DISTINCT [bail-id] only those records that
contain the most recent date and the corresponding [amount]. Awnser: record2
and record3
Does anyone understands what i mean?......and give me a clou how to do it???
Thanks for any help
Its definition is simple:
table name: table1
field1 name: [table1-id] (autonumber)
field2 name: [bail-id] (reference to an other table)
field2 name: [amount] (money)
field3 name: [amountdate] (a date field)
so the problem is that there may be several records with the same [bail-id]
but a different [amount] and/or [amountdate].
for example:
[table1-id],[bail-id],[amount],[amountdate]
record1 1 3 10.10 10-09-2005
record2 2 3 12.00 11-09-2005
record3 3 2 9.00 12-09-2005
record4 4 2 10.00 09-09-2005
Now i want to find for each DISTINCT [bail-id] only those records that
contain the most recent date and the corresponding [amount]. Awnser: record2
and record3
Does anyone understands what i mean?......and give me a clou how to do it???
Thanks for any help