troubleshooting Question

Check lock status of record in SQL SERVER via Access 2003 VBA

Avatar of StarbuckLives
StarbuckLives asked on
Microsoft AccessMicrosoft SQL Server
9 Comments1 Solution708 ViewsLast Modified:
Hello all,

I am working in Access 2003 and hitting against an SQL Server for my data. I need to update data in a table that could be in uses by one of several other applications.

So, what I need to do is to check to see if a record is currently locked/in use before opening the VBA recordset to edit it. This way, if the record is available, I can:

 Open it/lock it/update it/unlock it/be on my merry way/go eat a cheese sandwich.

If the record is locked/not available, I can:

Inform the user/wait/not bother/ do something else both in my code and in real life.

How might I be able to accomplish this?

Thanks in advance and........ Go!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros