N
not_an_exit
Hello there,
Does anybody know how to dedupe in Access 2000 with a condition
attached? I am aware that you can use an append query after copying
your table and making one field a primary key (this is in the Access
help file). However I can't find a way of controlling which duplicate
record is kept after running the append query, which would be really
handy. For example, if I had the following table with 2 fields:
field_a field_b
1 28/05/08
1 29/05/08
1 30/05/08
2 30/05/08
2 29/05/08
2 28/05/08
3 28/05/08
3 30/05/08
3 29/05/08
I would like to dedupe field_a with the condition that the date in
field_b is the most recent date. These would be the results I'm
after:
field_a field_b
1 30/05/08
2 30/05/08
3 30/05/08
However when I run the append query after making field_a the primary
key, the results I get are:
field_a field_b
1 30/05/08
2 28/05/08
3 29/05/08
This is great because it dedupes field_a, but it doesn't give any
control over which duplicate record is kept. Any help would be
greatly appreciated!
Cheers
Andy
Does anybody know how to dedupe in Access 2000 with a condition
attached? I am aware that you can use an append query after copying
your table and making one field a primary key (this is in the Access
help file). However I can't find a way of controlling which duplicate
record is kept after running the append query, which would be really
handy. For example, if I had the following table with 2 fields:
field_a field_b
1 28/05/08
1 29/05/08
1 30/05/08
2 30/05/08
2 29/05/08
2 28/05/08
3 28/05/08
3 30/05/08
3 29/05/08
I would like to dedupe field_a with the condition that the date in
field_b is the most recent date. These would be the results I'm
after:
field_a field_b
1 30/05/08
2 30/05/08
3 30/05/08
However when I run the append query after making field_a the primary
key, the results I get are:
field_a field_b
1 30/05/08
2 28/05/08
3 29/05/08
This is great because it dedupes field_a, but it doesn't give any
control over which duplicate record is kept. Any help would be
greatly appreciated!
Cheers
Andy