dbTalk Databases Forums  

Re: Error 424 - Object required

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


Discuss Re: Error 424 - Object required in the comp.databases.ms-access forum.



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

Default Re: Error 424 - Object required - 03-23-2009 , 05:16 PM






If I understand what it is you are trying to say ( and that isnt
easy), then "error 7878 The data has been changed. "

means someone has changed the record in a form before someone has had
a chance to save their copy.
eg
1) Operator A opens a form at 9:18 - the customer address says "23
smith st"
2) Operator B open the same form at 9:18:30 - the customer address
says "23 smith st"
3) Operator B changes the address to "23/a smith st", and exits the
form at 9:18:45, saving their change.

4)Operator A changes the form at 9:19 - changes the address to "23-a
smith st",
The message "error 7878 The data has been changed" appears to operator
A

Congratulations - You have experienced "Optimistic Locking"

The danger is if Operator B ALSO changed the customers telephone
number, but operator A didnt, because if Operator A does save the
customer record, then Operator B's changes will be overwritten.

The solution is - Never use BOUND controls on an Access Form in an ADP

If this isnt your problem, you need to explain it better to get some
more suggestions





Reply With Quote
  #2  
Old   
Tony Toews [MVP]
 
Posts: n/a

Default Re: Error 424 - Object required - 03-23-2009 , 08:52 PM






Accessed <rwatson (AT) westnet (DOT) com.au> wrote:

Quote:
The solution is - Never use BOUND controls on an Access Form in an ADP
Then why use Access if you can't use bound controls? That is Access's main
advantage.

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
  #3  
Old   
Tony Toews [MVP]
 
Posts: n/a

Default Re: Error 424 - Object required - 03-23-2009 , 08:53 PM



Niranjan <nhiras (AT) gmail (DOT) com> wrote:

Quote:
We used to have Access backend but not it is SQL server 2005. It used
to work before without any problem. After migrating to SQL server, we
are getting this error 424 Object required. Also, I am getting error
7878 The data has been changed.
I am not sure if I should copy the code - because there is a lot
happening. If someone wants the code I will post it.
Just post the line of code on which the errors are occurring.

Also do you have a timestamp aka rowversion field specified on each table as well as
a primary key?

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
  #4  
Old   
Larry Linson
 
Posts: n/a

Default Re: Error 424 - Object required - 03-25-2009 , 01:59 PM



"Accessed" makes the assumption that in "migrating to SQL Server", you
created an ADP (Access Project), which is not necessarily the case. You
might still be using an MDB linking to the SQL Server tables via ODBC. In
either case, "Accessed" is in error: Bound Forms work just-fine-thankee in
both ADP and MDB.

Optimistic locking usually works very well, indeed, also... there certainly
was insufficient information for a definitive answer, in any case. Unless
you jump through some, perhaps flaming, hoops to create a bad example, it is
rather rare for two users to be editing the same record in most business
applications.

It is extremely difficult, at best, to debug remotely. Unless the person
trying to help you is clairvoyant, it is impossible without details of what
you are doing, and that would mean, yes, you need to copy some code... not a
lot, but the code that is giving you the error.

Larry Linson
Microsoft Office Access MVP


"Niranjan" <nhiras (AT) gmail (DOT) com> wrote

Quote:
I wanted to find out how to overcome this error.
We used to have Access backend but not it is SQL server 2005. It used
to work before without any problem. After migrating to SQL server, we
are getting this error 424 Object required. Also, I am getting error
7878 The data has been changed.
I am not sure if I should copy the code - because there is a lot
happening. If someone wants the code I will post it.



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 - 2013, Jelsoft Enterprises Ltd.