I've run into this once in awhile but deciding that I am not checking properly when a form in this database app is closed. If I open and edit or insert not an issue but if in testing I open a form and just move to the next record and then click the Close button, I'm checking whether the user might have edited a record to make sure to post before closing for example:
procedure TFrmSalesOrdersMgt.SpdBtnCloseSOClick(Sender: TObject);
begin
try
if DbfSO.Modified then
DbfSO.Post;
finally
DbfSO.Close;
end;
DbfProposal.Close;
DbfContacts.Close;
DbfPhotogrphr.Close;
DbfFirmType.Close;
DbfJobType.Close;
DbfStatus.Close;
FrmSalesOrdersMgt.Close;
FrmSalesOrdersMgt.Free;
end;
Is there a better way to check other than if DbfSO.Modified ? See attached error.
Tks anyone