dbTalk Databases Forums  

ms-access97 & sql server2005 - error "the data has been changed"

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


Discuss ms-access97 & sql server2005 - error "the data has been changed" in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Tony Toews [MVP]
 
Posts: n/a

Default Re: ms-access97 & sql server2005 - error "the data has been changed" - 02-25-2008 , 10:52 PM






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

Quote:
ms-access97 & sql server2005
two tables
tblItem
tblItemFeature

form frmItem contains subform frmItemFeature
each form is based on their respective table

creating new record and filling in two bound fields works fine

creating new record, filling in first field, filling in field in
subform and filling in second field, produces error
the data has been changed
another user edited this record and saved the changes before you
attempted to save your changes
reedit the record


both tables have a timestamp fields, per other discussions in this
news group
Just guessing. Is the primary key of those tables also on the form?

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/


Reply With Quote
  #12  
Old   
lyle fairfield
 
Posts: n/a

Default Re: ms-access97 & sql server2005 - error "the data has been changed" - 02-25-2008 , 11:50 PM






"Tony Toews [MVP]" <ttoews (AT) telusplanet (DOT) net> wrote in
news:9n67s3plh8gv96ahsqdqteh8kg51uo90ub (AT) 4ax (DOT) com:

Quote:
lyle fairfield <lylefa1r (AT) yah00 (DOT) ca> wrote:

Either table have triggers on them?

That wasn't Roger that was Roy.

Which picture was that in, Lyle?

Revenge of the Palomino!

guffaw

Tony
I'm back in my childhood cowboy days and Tony never said <guffaw> then,
only <neigh> or <whinny>.

I guess we'll see if there's anyone here who's familar enough with the
radio cowboys of the early 40's to know why.

Here's a hint. I listened to a show with Tony in it from 17:45 to 18:00
(5:45 pm to 6:00 pm) from WSLB, Ogdensburg every afternoon in 1945 and on
April 12 it was interrupted by a famous announcement. My friend, Donald and
I went out onto the street to tell people this news but no one believed
seven year olds. We should have said, "But it's true, man (or soon will
be)!"

And some people say there's nothing new to be learned on CDMA!

Lyle
(Always the Lone Ranger)





Reply With Quote
  #13  
Old   
Larry Linson
 
Posts: n/a

Default Re: ms-access97 & sql server2005 - error "the data has been changed" - 02-26-2008 , 01:30 AM



"lyle fairfield" <lylefa1r (AT) yah00 (DOT) ca> wrote

Quote:
I'm back in my childhood cowboy days and Tony
never said <guffaw> then,
only <neigh> or <whinny>.

I guess we'll see if there's anyone here who's familar enough with the
radio cowboys of the early 40's to know why.

Here's a hint. I listened to a show with Tony in it from 17:45 to 18:00
(5:45 pm to 6:00 pm) from WSLB, Ogdensburg every afternoon in 1945 and on
April 12 it was interrupted by a famous announcement. My friend, Donald
and
I went out onto the street to tell people this news but no one believed
seven year olds. We should have said, "But it's true, man (or soon will
be)!"

And some people say there's nothing new to be learned on CDMA!
I remember listening to that same show, never realizing that both Tony and
his master were both gone on to the Great Beyond by then. And, going on to
the Great Beyond might be a good lead-in to the other event you mentioned.




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

Default Re: ms-access97 & sql server2005 - error "the data has been changed" - 02-26-2008 , 04:22 AM



On Feb 25, 5:28*pm, "Rick Brandt" <rickbran... (AT) hotmail (DOT) com> wrote:
Quote:
Roger wrote:
On Feb 25, 4:56 pm, "Rick Brandt" <rickbran... (AT) hotmail (DOT) com> wrote:
Roger wrote:
On Feb 25, 3:45 pm, Roger <lesperan... (AT) natpro (DOT) com> wrote:
if I go to the subform control on the main form and I add
'me.refresh' to its exit event, I don't get the error
why ?

Either table have triggers on them?

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com

nope
I just used the access wizard to export the design / data from the mdb
to sql server
nothing else

What datatype (on the server) are the fields in the primary keys? *If these
don't have exact Access equivelants then it can sometimes round them and get
confused. *I doubt that would have if you exported them from with the
wizard, but it's still worth checking.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt * at * Hunter * dot * com- Hide quoted text -

- Show quoted text -
in sql2005
CREATE TABLE [dbo].[tblItem](
[itemId] [int] IDENTITY(1,1) NOT NULL,...

CREATE TABLE [dbo].[tblItemFeature](
[itemId] [int] NOT NULL,
[itemClassId] [nvarchar](2) NOT NULL,
[featureId] [int] NOT NULL,....

in msaccess
tblItem.itemId is autonumber

tblItemFeature.itemId is long integer
.itemClassId is text
.featureId is long integer


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

Default Re: ms-access97 & sql server2005 - error "the data has been changed" - 02-26-2008 , 04:24 AM



On Feb 25, 9:52*pm, "Tony Toews [MVP]" <tto... (AT) telusplanet (DOT) net> wrote:
Quote:
Roger <lesperan... (AT) natpro (DOT) com> wrote:
ms-access97 & sql server2005
two tables
* *tblItem
* *tblItemFeature

form frmItem contains subform frmItemFeature
each form is based on their respective table

creating new record and filling in two bound fields works fine

creating new record, filling in first field, filling in field in
subform and filling in second field, produces error
* *the data has been changed
* *another user edited this record and saved the changes before you
attempted to save your changes
* *reedit the record

both tables have a timestamp fields, per other discussions in this
news group

Just guessing. *Is the primary key of those tables also on the form?

Tony
--
Tony Toews, Microsoft Access MVP
* *Please respond only in the newsgroups so that others can
read the entire thread of messages.
* *Microsoft Access Links, Hints, Tips & Accounting Systems athttp://www.granite.ab.ca/accsmstr.htm
* *Tony's Microsoft Access Blog -http://msmvps.com/blogs/access/- Hidequoted text -

- Show quoted text -
yes.. all fields that make up the primary keys of both tables are on
the forms


Reply With Quote
  #16  
Old   
Rick Brandt
 
Posts: n/a

Default Re: ms-access97 & sql server2005 - error "the data has been changed" - 02-26-2008 , 06:08 AM



Roger wrote:
Quote:
in sql2005
CREATE TABLE [dbo].[tblItem](
[itemId] [int] IDENTITY(1,1) NOT NULL,...

CREATE TABLE [dbo].[tblItemFeature](
[itemId] [int] NOT NULL,
[itemClassId] [nvarchar](2) NOT NULL,
[featureId] [int] NOT NULL,....

in msaccess
tblItem.itemId is autonumber

tblItemFeature.itemId is long integer
.itemClassId is text
.featureId is long integer
I see nothing wrong with anything you have. When I have made back-door
changes directly in table link datasheets I have definitely seen what you
are describing. If I change a row, move to a different row, and then change
the first row again I will get that message just about every time.

I don't recall seeing it occur on a form, but perhaps I just never performed
the sequence you are describing.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com




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.