table not in edit mode. Delphi
Posted: Thu 18 Jun 2015 13:07
Delphi _ In the past, I have entered a child form for the editing data. On entering the form I put the table into edit mode and on closing the form, I post the data. This has always worked fine.
I have a new program constraint and I now have 2 tables opened in the child form.
I put both tables into edit mode, and then when I close the form I get "not in edit mode" when returning to the calling program. PS I do not move from the currently selected records.
Even if I I use the following code I get the same error.
The only way to not have an error is to not use a post at all. What or how do I find out what is going wrong?
I have a new program constraint and I now have 2 tables opened in the child form.
I put both tables into edit mode, and then when I close the form I get "not in edit mode" when returning to the calling program. PS I do not move from the currently selected records.
Code: Select all
procedure TfMain.dbgMasterDblClick(Sender: TObject);
begin
fMembers.ShowModal;
Error ------------> end;Code: Select all
procedure TfMembers.FormClose(Sender: TObject; var Action: TCloseAction);
begin
dm.tblMaster.Post;
dm.tblMembersMast.Post;
dm.tblMaster.Edit;
dm.tblMembersMast.Edit;
end;