j'ai une table s'appelle Fiche
N_Fiche Clé primaire num séquentiel
N_COnsta
annee
commune
wilaya
Exemple;1 ernregistrement
N_Fiche 1
N_COnsta 1
année 2015
commune x
wilaya y
Exemple;2 enregistrement
N_Fiche 2
N_COnsta 1
année 2015
commune x
wilaya z
normalement le N_COnsta ne se répète pas dans la même commune et meme année je ne sais pas j fais un locate
j essayé avec un seul critere ,a plusieur critere ça marche pas
DataModule1->table->Locate("Compte",Form5->DBComboBox2->Text,TLocateOptions()<<loPartialKey);
if(tableCompte->Value==Form5->DBComboBox2->Text) à)
{
ShowMessage("Le compte existe déja.....Réessayé!");
Rd37bis->Cancel();
Partager