Hi:
I'm trying to save a field to an Access database. I dropped a TQuery and TUpdateSQL with the appropriate SQL statements.
The application will compile and run and when i click the save button the app acts like it works but when i check the database the record has not been modified (a record already exists in the table.) Does anyone know what is going on?
The below is the code when the save button is clicked:
procedure TForcedCall.btnSaveClick(Sender: TObject);
begin
if (Utility.Modified) then
CallBackQ.FieldByName('BACKCOMP').NewValue:=Utility.Text;
StatBar.Panels[1].Text:='Modified';
RC := chkSaveMessage(Memo1, SaveDialog1);
ForcedCall.Caption:=SaveDialog1.FileName;
Utility.text := '';
ResetBools;
end;
Thanks.
I'm trying to save a field to an Access database. I dropped a TQuery and TUpdateSQL with the appropriate SQL statements.
The application will compile and run and when i click the save button the app acts like it works but when i check the database the record has not been modified (a record already exists in the table.) Does anyone know what is going on?
The below is the code when the save button is clicked:
procedure TForcedCall.btnSaveClick(Sender: TObject);
begin
if (Utility.Modified) then
CallBackQ.FieldByName('BACKCOMP').NewValue:=Utility.Text;
StatBar.Panels[1].Text:='Modified';
RC := chkSaveMessage(Memo1, SaveDialog1);
ForcedCall.Caption:=SaveDialog1.FileName;
Utility.text := '';
ResetBools;
end;
Thanks.