Re: Access complains : Update or CancelUpdate without AddNew or Edit

From: "Richard Broersma" <richard(dot)broersma(at)gmail(dot)com>
To: "Fred Parkinson" <FredP(at)abag(dot)ca(dot)gov>
Cc: Andreas <maps(dot)on(at)gmx(dot)net>, pgsql-odbc(at)postgresql(dot)org
Subject: Re: Access complains : Update or CancelUpdate without AddNew or Edit
Date: 2008-03-21 19:53:50
Message-ID: 396486430803211253t2fa7ae39sf6641f67887ec943@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

On 3/21/08, Fred Parkinson <FredP(at)abag(dot)ca(dot)gov> wrote:
>
> But now and then a user reports a error (I have to translate):
> .. event before update caused an error:
> Update or CancelUpdate without AddNew or Edit

I've only seen this error in MS-Access when I've done one of two things:

I've tried up manually update or cancel an update to a record (in a
recordset object) that wasn't already opened for editing or opened as a
newly created record.

This should be the only way that this error message should be raised.

I would use the DEBUG find utility to search all of you form's code for
any instances where the DAO recordset methods are being used to update your
form's recordset object.

I would bet that user is able to call one of these methods via the form's
control's event procedures at an unexpected time when the record has not
recieved any changed from the user.

Regards,
Richard Broersma Jr.

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Mike Traum 2008-03-23 20:43:31 Visio not able to retrieve foreign keys against 8.3
Previous Message Fred Parkinson 2008-03-21 17:27:03 Re: Access complains : Update or CancelUpdate without AddNew or Edit