Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Developer Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Another User Has Changed the Record
Martin Fairbairn 
    
10 months ago
Why does Access keep telling me another has changed the record and making me drop changes when I am the only user and only accessing the record from one place?  I have tables linked to mySQL and this seems to happen, mostly but not always, when I have a form bound to a query that joins 2 tables.
Donald Blackwell  @Reply  
        
10 months ago
This typically happens when two or more forms try to update the same record. The same is true if you have a sub form on a form and both the main form and the subform are trying to modify the same record in the same table. Access thinks of the main form and the form in the subform as two different "users".
Donald Blackwell  @Reply  
        
10 months ago
If one of those doesn't cover it, then we'd need to see your form/query in design view along with any code that could be modifying the data.
Thomas Gonder  @Reply  
       
10 months ago
Please report back what you find Martin, I'm curious. Also, please tell us what record locking settings you are using and where.
Martin Fairbairn OP  @Reply  
    
10 months ago
I opened the file.  Logged on as usual.  Opened the Person form for my personal record.  Clicked on a button "Person CIS" and changed the passport number.  See screenshot.  I have done nothing else before that.
The form is based on a query where the primary table is tblpersoncis where fkPerson is joined to pkParty in tblparty.  The first passport number is in tblparty, not in tblpersoncis.
Martin Fairbairn OP  @Reply  
    
10 months ago

Martin Fairbairn OP  @Reply  
    
10 months ago
I noticed the Person form was still open so i closed the d/b and logged on again and opened the fromPersonCIS directly without going through the Person form.  But I still got the same error when I tried to update the passport number

Richard Rost  @Reply  
          
10 months ago
I see this one a lot, even in my own databases sometimes. Where you've got an event that runs when the record opens and maybe makes the record dirty. And then something else, perhaps an SQL statement that you're running, tries to also update the same record while it's still dirty. So you have to make sure that you refresh the record after each change if you're trying to make background changes. This usually only happens with complicated code. I've actually got a whole video on this coming out soon. So stay tuned. In the mean time see Record Locks
Martin Fairbairn OP  @Reply  
    
10 months ago
fromPersonCIS should read frmPersonCIS.
Thomas Gonder  @Reply  
       
10 months ago
I haven't used a SQL query as the primary source for a form's data, only in combo boxes of the form.
Is it possible that the form source query makes the change from the form and updates the table (via refresh), and then the form saving/closing sees to make a change again, but isn't smart enough to know the change was from its own source that was already updated?  It sounds confusing, but this kind of thing is common when an intermediary is used, in this case the source query, unless the application plans ahead for this in its internal structure. This is similar to the problem I've hit when one form using a global module contaminates the persistent data from another form's call to the same global module. The Access team has overlooked a lot of these kinds of situations.
Thomas Gonder  @Reply  
       
10 months ago
If you are using relationships and cascading updates, I've seen Access get very confused in the whole record locking area. On my system, in my experience working in tables, it just pops up a lock error and then hangs any further work on the record. Your experience might be a different manifestation of this problem.
Martin Fairbairn OP  @Reply  
    
10 months ago
Thanks, Richard and Thomas. I shall check whether my form is trying to update something on load or current that I haven't thought of

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 4/30/2026 7:08:33 AM. PLT: 1s