Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6774123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:44:57+00:00 2026-05-26T15:44:57+00:00

Blast from the past… Got tasked to mange an aging Access 2000 adp used

  • 0

Blast from the past… Got tasked to mange an aging Access 2000 adp used to manage data residing on SQL 2005 server. On one of the dataforms, whenever I try to make a change to a field and save the change back to the database, it times out after about a minute. Increasing the time-out limit only delays the display of the time out error message. I went through all the usual troubleshooting to ensure compatibility (see e.g. this SO question).

This is the setup: a Form is bound to a record set (which is read from the database as a SELECT * FROM table_name query. The result set varies in size depending on filters set on the form, but the result is usually around 200 records (not a lot data…). Some of the fields on the form triggers an automatic save in an associated event handler, which looks something like:

Private Sub EndDate_Exit(Cancel As Integer)
     some checking goes here...
     ...
     DoCmd.RunCommand acCmdSaveRecord
End Sub

Whenver the DoCmd.RunCommand acCmdSaveRecord code is executed, the ADP freezes up until I get a timeout error. Digging into it a little deeper, I looked at the Activity Monitor on the SQL Server. The acCmdSaveRecord triggers an UPDATE statement back to the server to save the changed data. The statement itself is automatically constructed by MS Access based on the underlying table’s primary key, which appears to be defined correctly. However, the update is blocked by a running SELECT statement, which corresponds to the SELECT * FROM table_name query mentioned above.

This leads to a deadlock: The user’s change triggers an UPDATE, which is blocked by a running SELECT (which, as it appears, originated from the Form being edited). How can I get around this?

Things we have tried:

  1. We have removed the DoCmd.RunCommand acCmdSaveRecord statement and replaced it with the code Me.Dirty = False, which leads to the exact same behavior as described above.
  2. Removed the acCmdSaveRecord complete, and used the built-in Access menu to save the change. This is functionality equivalent to #1, and leads to the exact same behavior.
  3. Replace the acCmdSaveRecord call with a stored procedure which saves the change to the specific field. Works great, except that saving the entire record from GUI (save button which calls acCmdSaveRecord) leads to the same deadlock.
  4. Reduced the size of the result set associated with the form to a few records. Oddly, still exhibits the EXACT same behavior.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:44:57+00:00Added an answer on May 26, 2026 at 3:44 pm

    It sounds as though you have set the transaction isolation level to SERIALIZABLE for your connection at some point. See SET TRANSACTION ISOLATION LEVEL (Transact-SQL) for more details. Here is the applicable excerpt (emphasis added):

    SERIALIZABLE

    Specifies the following:

    • Statements cannot read data that has been modified but not yet committed by other transactions.

    • No other transactions can modify data that has been read by the current transaction until the current transaction completes.

    • Other transactions cannot insert new rows with key values that would fall in the range of keys read by any statements in the current transaction until the current transaction completes.

    Range locks are placed in the range of key values that match the search conditions of each statement executed in a transaction. This blocks other transactions from updating or inserting any rows that would qualify for any of the statements executed by the current transaction. This means that if any of the statements in a transaction are executed a second time, they will read the same set of rows. The range locks are held until the transaction completes. This is the most restrictive of the isolation levels because it locks entire ranges of keys and holds the locks until the transaction completes. Because concurrency is lower, use this option only when necessary. This option has the same effect as setting HOLDLOCK on all tables in all SELECT statements in a transaction.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's a blast from the past: what does REM, the comment marker, stand for
I am attempting to parse html data from a website using BeautifulSoup for python.
I've got a query in similar structure to below SELECT blah FROM A, B,
I'm working on a small application and thinking about integrating BLAST or other local
I will do microblogging web service (for school, so don't blast me for lack
Ive got the following html setup: <div id=div1> <div id=content1>blaat</div> <div id=content1>blaat2</div> </div> it
When I execute my python script from the command line I have no problems
I have development server (from google appengine sdk), running on my Ubuntu computer. I
I am moving a project which uses clapack from osx to linux and experiencing
How can rich text or HTML source code be obtained from the X clipboard?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.