dbTalk Databases Forums  

Record in table 'foo' was deleted by another user

comp.databases.ms-access comp.databases.ms-access


Discuss Record in table 'foo' was deleted by another user in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Roger
 
Posts: n/a

Default Record in table 'foo' was deleted by another user - 02-23-2011 , 03:18 AM






I have a sql server 2005 table called foo
it is an access2007 linked table
with a form using bound fields (qmsResponsibility, ncoType)
part of an afterUpdate event does this


7
If (Nz(qmsResponsibility, 0) = 20) Then
ncoType = 1
Else
ncoType = 2
End If
8
fExit:
On Error Resume Next
Exit Sub

fErr:
msgbox err.description & " " & Erl
Resume fExit

I get a msgbox with
Record in table 'foo' was deleted by another user

and erl is 7

in order to get to the afterUpdate event, the user has selected
one specific record from table foo

other than the obvious, ie. another user did in fact delete this
record? what else can cause this error ?

Reply With Quote
  #2  
Old   
aceware
 
Posts: n/a

Default Re: Record in table 'foo' was deleted by another user - 02-23-2011 , 08:07 AM






I may be on the wrong track - but see if adding a "timestamp" type field to
the table fixes the problem.

"Roger" <lesperancer (AT) natpro (DOT) com> wrote

Quote:
I have a sql server 2005 table called foo
it is an access2007 linked table
with a form using bound fields (qmsResponsibility, ncoType)
part of an afterUpdate event does this


7
If (Nz(qmsResponsibility, 0) = 20) Then
ncoType = 1
Else
ncoType = 2
End If
8
fExit:
On Error Resume Next
Exit Sub

fErr:
msgbox err.description & " " & Erl
Resume fExit

I get a msgbox with
Record in table 'foo' was deleted by another user

and erl is 7

in order to get to the afterUpdate event, the user has selected
one specific record from table foo

other than the obvious, ie. another user did in fact delete this
record? what else can cause this error ?

Reply With Quote
  #3  
Old   
Salad
 
Posts: n/a

Default Re: Record in table 'foo' was deleted by another user - 02-23-2011 , 08:58 AM



Roger wrote:
Quote:
I have a sql server 2005 table called foo
it is an access2007 linked table
with a form using bound fields (qmsResponsibility, ncoType)
part of an afterUpdate event does this


7
If (Nz(qmsResponsibility, 0) = 20) Then
ncoType = 1
Else
ncoType = 2
End If
8
fExit:
On Error Resume Next
Exit Sub

fErr:
msgbox err.description & " " & Erl
Resume fExit

I get a msgbox with
Record in table 'foo' was deleted by another user

and erl is 7

in order to get to the afterUpdate event, the user has selected
one specific record from table foo

other than the obvious, ie. another user did in fact delete this
record? what else can cause this error ?
In google I found the following.
http://msdn.microsoft.com/en-us/libr...ice.12%29.aspx

There's this as well
http://www.granite.ab.ca/access/corruption/symptoms.htm
and
http://www.corrupteddatarecovery.com...ther-user..asp

Reply With Quote
  #4  
Old   
Roger
 
Posts: n/a

Default Re: Record in table 'foo' was deleted by another user - 02-24-2011 , 06:57 AM



On Feb 23, 7:07*am, "aceware" <acew... (AT) iinet (DOT) net.au> wrote:
Quote:
I may be on the wrong track - but see if adding a "timestamp" type field to
the table fixes the problem.

"Roger" <lesperan... (AT) natpro (DOT) com> wrote in message

news:594c1529-06ba-4e60-886a-905b7fa1e860 (AT) o21g2000prn (DOT) googlegroups.com...



I have a sql server 2005 table called foo
it is an access2007 linked table
with a form using bound fields (qmsResponsibility, ncoType)
part of an afterUpdate event does this

7
* *If (Nz(qmsResponsibility, 0) = 20) Then
* * * *ncoType = 1
* *Else
* * * *ncoType = 2
* *End If
8
fExit:
* *On Error Resume Next
* *Exit Sub

fErr:
* *msgbox err.description & " " & Erl
* *Resume fExit

I get a msgbox with
* Record in table 'foo' was deleted by another user

and erl is 7

in order to get to the afterUpdate event, the user has selected
one specific record from table foo

other than the obvious, ie. another user did in fact delete this
record? what else can cause this error ?- Hide quoted text -

- Show quoted text -
thanks, but I already have a timestamp field

Reply With Quote
  #5  
Old   
Roger
 
Posts: n/a

Default Re: Record in table 'foo' was deleted by another user - 02-24-2011 , 07:05 AM



On Feb 23, 7:58*am, Salad <sa... (AT) oilandvinegar (DOT) com> wrote:
Quote:
Roger wrote:
I have a sql server 2005 table called foo
it is an access2007 linked table
with a form using bound fields (qmsResponsibility, ncoType)
part of an afterUpdate event does this

7
* * If (Nz(qmsResponsibility, 0) = 20) Then
* * * * ncoType = 1
* * Else
* * * * ncoType = 2
* * End If
8
fExit:
* * On Error Resume Next
* * Exit Sub

fErr:
* * msgbox err.description & " " & Erl
* * Resume fExit

I get a msgbox with
* *Record in table 'foo' was deleted by another user

and erl is 7

in order to get to the afterUpdate event, the user has selected
one specific record from table foo

other than the obvious, ie. another user did in fact delete this
record? what else can cause this error ?

In google I found the following.http://msdn.microsoft.com/en-us/libr...ice.12%29.aspx

There's this as wellhttp://www.granite.ab.ca/access/corruption/symptoms.htm
andhttp://www.corrupteddatarecovery.com/Access-Recovery/Access-Database-....- Hide quoted text -

- Show quoted text -
my form is set to 'no locks' (optimistic) locking
changing it to pessimistic locking (edited record), locks pages which
could prevent someone from updating another record in the same page -
is this a problem with access2007 ?

as to the other two links, the sql server data is not corrupted

Reply With Quote
  #6  
Old   
agiamb
 
Posts: n/a

Default Re: Record in table 'foo' was deleted by another user - 02-24-2011 , 08:11 AM



I have found that Access sometimes reports errors that seem unrelated to the
actual problem.
On the assumption that the code in the afterUpdate event references
controls/fields on the same form, I think you are setting up an endless
circle.

The record in the form is updated, which triggers the afterUpdate event,
which then dirties the form again, which then must be saved again,
triggering another afterUpdate event.

If you want ot modify the same record after saving it, try using the
recordsetclone. That won't dirty the form.

Also make sure that Access recognizes the primary key in the table that the
form is bound to.
--

AG
Email: npATadhdataDOTcom


"Roger" <lesperancer (AT) natpro (DOT) com> wrote

Quote:
I have a sql server 2005 table called foo
it is an access2007 linked table
with a form using bound fields (qmsResponsibility, ncoType)
part of an afterUpdate event does this


7
If (Nz(qmsResponsibility, 0) = 20) Then
ncoType = 1
Else
ncoType = 2
End If
8
fExit:
On Error Resume Next
Exit Sub

fErr:
msgbox err.description & " " & Erl
Resume fExit

I get a msgbox with
Record in table 'foo' was deleted by another user

and erl is 7

in order to get to the afterUpdate event, the user has selected
one specific record from table foo

other than the obvious, ie. another user did in fact delete this
record? what else can cause this error ?

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.