Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select count(*) from,
Message
De
06/06/2002 22:56:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00665646
Message ID:
00665778
Vues:
21
>Can i use this query in visual foxpro to get the count.
>If the count is greater than one then there is a record with the same values and can show a message duplicate record found.
>
>
>lcSource = "SELECT count(*) from sub ;
>WHERE sub.project_no = projno ;
>AND sub.workpkg_no = workpkgno ;
>AND sub.sub_sec = subsec ;
>AND sub.sub_para = subpar ;
>AND sub.sub_seq = subseq ;
>AND DELETED() = .f. ;
>ORDER BY project_no, workpkg_no ;
>into cursor cSource"
>
>
>Thank you.

You might change deleted() = .F. to not deleted().

Better yet:
SET DELETED ON
Then you won't need the "not deleted()" in the SQL query.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform