Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   Delphi InsertSQL (https://www.delphipraxis.net/88300-insertsql.html)

fapsons 14. Mär 2007 09:01

Re: InsertSQL
 
Bringt leider nichts. Kommt die selbe Fehlermeldung...

TBx 14. Mär 2007 09:06

Re: InsertSQL
 
Hallo!

Poste bitte mal die genaue Fehlermeldung, die Dir ausgegeben wird.

Gruß

Thomas

fapsons 14. Mär 2007 10:23

Re: InsertSQL
 
Im Projekt reg.exe ist eine Exception der Klasse EDatabaseError aufgetreten. Meldung: 'Feld 'TMID' muss einen Wert haben'. Prozess wurde angehalten. Mit Einzelnen....

hoika 14. Mär 2007 10:58

Re: InsertSQL
 
Hallo,

warum nimmst du nicht einfach

.InsertSQL.ExecSQL.


Heiko

Hansa 14. Mär 2007 11:40

Re: InsertSQL
 
Warum machst Du das nicht so ?

Delphi-Quellcode:
procedure Add_New_Terminal(typ, Bez, Beschr :String);
begin
 with D_DataModule.DataSet do
 begin
   Insert;
   FieldByName ('TYP').AsString := typ;
   FieldByName ('BEZEICHNUNG').AsString := Bezeichnung;
   FieldByName ('BESCHREIBUNG').AsString := Beschr;
   Post;
 end;
end;
[/quote]

fapsons 14. Mär 2007 13:07

Re: InsertSQL
 
Habe es jetzt mit der IBQuery versucht. Jetzt klappts problemlos... Danke...;)


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:17 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz