Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error: Dataset not in edit or insert mode

813 views
Skip to first unread message

Johann

unread,
Jan 23, 2003, 4:37:48 PM1/23/03
to
Hi

I am adding a record in a table of a database by using the following
statements:

DATABASENAME.TABLENAME.append;
DATABASENAME.TABLENAME.FieldByName('FIELDNAME').value := FIELDVALUE;
.
.
.
.
DATABASENAME.TABLENAME.post;

I constantly get the error message: Dataset not in edit or insert mode. What
is causing this?
I've checked edit, insert, edit mode, and insertmode in the help files, but
can't find the reason for this error.

Thank you
Johann


Rael

unread,
Jan 23, 2003, 7:45:03 PM1/23/03
to
Add a statement
databasename.tablename.edit;
before append.

Rael

Johann <crot...@datanet-sa.co.za> wrote in message
news:3e30...@newsgroups.borland.com...

Rick Betting

unread,
Jan 24, 2003, 6:02:10 AM1/24/03
to
> I am adding a record in a table of a database by using the following
> statements:
>
> DATABASENAME.TABLENAME.append;
> DATABASENAME.TABLENAME.FieldByName('FIELDNAME').value := FIELDVALUE;

Make sure DATABASENAME.TABLENAME.ReadOnly is set to False.

--

Rick Betting,
Online Software.
ri...@ATonlinegroepDOT.nl
(Remove AT and DOT )

Nam et ipsa scientia potestas est


"Johann" <crot...@datanet-sa.co.za> schreef in bericht
news:3e30...@newsgroups.borland.com...


0 new messages