Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dataset not in edit or insert mode

Status
Not open for further replies.

n1br

Programmer
Apr 7, 2004
3
0
0
BR
...raised exception class EDatabaseError with message 'ADODataSet1: Dataset not
in edit or insert mode'.


Olá Pessoal,

Hi,

In form1 I have 1 spdbtn redirected to form2:

DM1.ADOTable1.Edit;
frm2.showmodal;

In form2, after editing data in dbedit, there is a spdbtn
containing:
DM1.ADODataSet1.Post; inside try/except but this msg
apeears:

...raised exception class EDatabaseError with message 'ADODataSet1: Dataset not
in edit or insert mode'.

Any suggestion?

Thanks



 
My guess is that during the DBEdit's refresh (upon showing of their owning form) they are changing the ADOTable's state so it's not being edited.

Try moving the ADOTable.Edit command to Form2's OnShow event.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top