In a table a supposedly unique field contains double values.
To determine/get rid of these double entries, I use the following SELECT - SQL statement:
When I run this in my development environment, it works flawlessly (VFP 6.0, SP4).
However, in the compiled application (either an .app or an .exe), it suddenly doesn't work (the cursor contains just 1 record, and a wrong one at that).
I'm missing something here, but what? Diederik Vermeeren
verm1864@exact.nl
To determine/get rid of these double entries, I use the following SELECT - SQL statement:
Code:
SELECT a.id, a.code as doublecode ;
FROM basetable a WHERE NOT DELETED() AND ;
EXISTS (SELECT b.id ;
FROM basetable b ;
WHERE b.code = a.code AND b.id != a.id) ;
ORDER BY doublecode INTO CURSOR double
IF _TALLY > 0
...
When I run this in my development environment, it works flawlessly (VFP 6.0, SP4).
However, in the compiled application (either an .app or an .exe), it suddenly doesn't work (the cursor contains just 1 record, and a wrong one at that).
I'm missing something here, but what? Diederik Vermeeren
verm1864@exact.nl