Autor Beitrag
Becks16
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 405



BeitragVerfasst: Mo 20.06.05 14:45 
hallo

ich will das so machen das wenn ich über dem DBNavigator auf speichern klicke und es ist kein datensatz vorhanden das er mir denn sagt bitte füllen sie die und die felder aus

hier der code

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
procedure Tf_kunde.DBNavigator1Click(Sender: TObject;
  Button: TNavigateBtn);
begin
if Button = nbPost then begin
if db_auftraggeber.Text='' then begin ShowMessage('test')
end else begin
  f_haupt.qu_kunde.Edit;
  f_haupt.qu_kunde.FieldByName('kundennummer').AsString:= f_haupt.qu_kunde.FieldByName('id').AsString;
  f_haupt.qu_kunde.post;


 end;
end;
end;


mfg

Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt.

_________________
Ich bin Dumm und weiss nichts :-)


Zuletzt bearbeitet von Becks16 am Mo 20.06.05 14:48, insgesamt 1-mal bearbeitet
Radioactive
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 179

Win 98, Win XP Home SP2
D3 Prof, D7 Pers, D2005 Pers
BeitragVerfasst: Mo 20.06.05 14:47 
Also da fehlt ein end; am Ende! Und deine Fehlerbeschreibung ist mir auch nicht ganz klar.

_________________
Radioactive
"Wer scrollt, verliert!" Matthias Stein, Informatiklehrer am GG
Becks16 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 405



BeitragVerfasst: Mo 20.06.05 16:50 
also ein end fehlt nicht denn sonst würde es ja nicht durch laufen .....

_________________
Ich bin Dumm und weiss nichts :-)
matze.de
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 576

Win95, Win98 SE, WinXp Prof SP2
D7P, D8P, FPC2.0
BeitragVerfasst: Mo 20.06.05 17:15 
Aber da fehlt ein ";" nach showmessage().

mfg matze

_________________
si tacuisses, philosophus mansisses.
Becks16 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 405



BeitragVerfasst: Mo 20.06.05 17:23 
nee das klappt leider auch nicht wenn ich speichern drücke flieg ich ausen programm und er sagt eine leere zeile kann nicht eingefügt werden... das wollte ich ja mit der showmessage verhindern.....


mfg

_________________
Ich bin Dumm und weiss nichts :-)