![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I need help with a Statement! I am working with an Access2000 DB. ... I need a Statement that deletes the surplus records where 'Datum' and 'Linie' are identical to another record. 1 record has to remain of course. I thought of something like this. DELETE FROM tbAuswert WHERE EXISTS( SELECT * FROM tbAuswert WHERE (Linie AND Datum) IN ( SELECT Linie AND Datum AS Suchkrit FROM tbAuswert GROUP BY Suchkrit HAVING ((Count(Suchkrit)>1) ) ) But I get an error: You wanted to execute a Query that did not have the following expression 'Not Linie = 0 And Not Datum = 0' in its Aggregatefunction Perhaps you ccan help me. |
#3
| |||
| |||
|
|
Hi All! I need help with a Statement! I am working with an Access2000 DB. I have the following Problem. (snip) As you can see I have a few recordsets that are double. The Thing is, there is an ID that makes them different. I need a Statement that deletes the surplus records where 'Datum' and 'Linie' are identical to another record. 1 record has to remain of course. |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |