Using the tzmysqlquery for updates?
Posted: 04.07.2007, 12:57
Running Delphi 5.....
when I try and use the tzmysqlquery to do an update:
[font=Courier New]
with qryUpdate do
begin
Active:=false;
SQL.Clear;
SQL.Add(myQueryString);
Active:=true;
First;
Edit;
FieldByName('Name').AsString := 'TEST!';
ApplyUpdates;
end;[/font]
the program crashes on the ApplyUpdates with the message "Updatesql is empty".
Any suggestions, apart from the standard "upgrade to version X..."?
when I try and use the tzmysqlquery to do an update:
[font=Courier New]
with qryUpdate do
begin
Active:=false;
SQL.Clear;
SQL.Add(myQueryString);
Active:=true;
First;
Edit;
FieldByName('Name').AsString := 'TEST!';
ApplyUpdates;
end;[/font]
the program crashes on the ApplyUpdates with the message "Updatesql is empty".
Any suggestions, apart from the standard "upgrade to version X..."?