1 2 3 4 5 6 7 8 9
|
if( DateTimePicker1->Checked )
{
ADOQuery1->SQL->Add( "INSERT INTO clients(nom,prenom,adresse,codepostal,ville,telephonefixe,telephoneportable,email,datenaissance) VALUES( '" + ENom->Text + "', '" + EPrenom->Text + "', '" + EAdresse->Text + "', '" + ECP->Text + "', '" + EVille->Text + "', '" + ETF->Text + "', '" + ETP->Text + "', '" + EMail->Text + "', #" + DateToStr(DateTimePicker1->Date) + "# )" );
}
else
{
ADOQuery1->SQL->Add( "INSERT INTO clients(nom,prenom,adresse,codepostal,ville,telephonefixe,telephoneportable,email) VALUES( '" + ENom->Text + "', '" + EPrenom->Text + "', '" + EAdresse->Text + "', '" + ECP->Text + "', '" + EVille->Text + "', '" + ETF->Text + "', '" + ETP->Text + "', '" + EMail->Text + "' )" );
} |
Partager