![]() |
Re: Sql - Ado - Values
ja
|
Re: Sql - Ado - Values
ich habe folgendes:
Delphi-Quellcode:
ID_Name : Autowert (Key)
paul: Text ... maurice: Text .... Jahr:Datum/Uhrzeit (Format: Datum/Kurz) |
Re: Sql - Ado - Values
Und wenn Du den Datentyp auf ftDateTime änderst?
|
Re: Sql - Ado - Values
Moment mal, hast Du auch das trunc eingefügt?
|
Re: Sql - Ado - Values
dann sollte das doch klappen
Delphi-Quellcode:
with adoquery1 do
begin SQL.Text := STMT; dt:= Datetimepicker1.Date; Parameters.ParamByName('paul').Value := Edit1.Text; Parameters.ParamByName('Jahr').value.asDateTime:= dt; oder Parameters.ParamByName('Jahr').value.asDateTime := Datetimepicker1.Date; oder Parameters.ParamByName('Jahr').value := floattostr(Datetimepicker1.Date); Parameters.ParamByName('Jahr').Value := trunc(dt); // ... ExecSQL; end; end; |
Re: Sql - Ado - Values
geht auch nicht
|
Re: Sql - Ado - Values
Zeig nochmal den aktuellen Source.
|
Re: Sql - Ado - Values
du kannst natürlich, statt der parameter spielerei, auch ein ordentliches SQL Statement aufbauen ... :roll: :angel:
|
Re: Sql - Ado - Values
irgendwie klappt es nicht. ich probiere weiter und gebe bescheid
|
Re: Sql - Ado - Values
probier es doch mal so ...
Delphi-Quellcode:
PS: welche datenbank verwendest du eigentlich?
sql.Text:= 'Insert Into Tab_Fb_Ziel(paul, simon, alex, jean, rene, alain, simon, dominique, '
'Raymond, Sylax, jeanne, Yvonne, Claire, Nina, Pierre, Janson, Louis, Lila,' 'maurice, jahr )Values (' + quotedstr(edit1.text) + ', ' + quotedstr(edit2.text) + ', ' + quotedstr(edit3.text) + ', ' + quotedstr(edit4.text) + ', ' + quotedstr(edit5.text) + ', ' + quotedstr(edit6.text) + ', ' + quotedstr(edit7.text) + ', ' + quotedstr(edit8.text) + ', ' + quotedstr(edit9.text) + ', ' + quotedstr(edit10.text) + ', ' + quotedstr(edit11.text) + ', ' + quotedstr(edit12.text) + ', ' + quotedstr(edit13.text) + ', ' + quotedstr(edit14.text) + ', ' + quotedstr(edit15.text) + ', ' + quotedstr(edit16.text) + ', ' + quotedstr(edit17.text) + ', ' + quotedstr(edit18.text) + ', ' + floattostr(dateof(Datetimepicker1.Date)) + ');'; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 05:29 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz