Board index » delphi » DBRichEdit causing EDataBaseError on Dynamically loaded Frame
Charles de la Sablonnière
![]() Delphi Developer |
Mon, 22 Dec 2003 04:41:53 GMT
DBRichEdit causing EDataBaseError on Dynamically loaded Frame
I Have a TFrame that i load dynamically on a Form. On that Frame, i have a
TDBRichEdit, an ADOQuery and a DataSource.When the DBRichEdit looses the focus, i always get an EDataBaseError saying "ADOQuery1 not in Edit or insert mode". Here's the code in the Frame : constructor TFrame2.Create(AOwner: TComponent); destructor TFrame2.Destroy; Here's the code in the Form : procedure TForm1.FormCreate(Sender: TObject); procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction); procedure TForm1.Button1Click(Sender: TObject); initialization After Clicking on Button1, the Frame(with the DBRichEdit) Loads perfectly, Thanks in advance for any help Charles |