Row in Database locked

D

Dunmarie

I have multiple users using an Access database (Interface) connecting to the
main Access database on a server. I have found that sometimes when updating a
record while another user might have the record open on a query Access just
ignores the update without returning an error.
Code:

' Change the Location in the [stock file] table
Serial = lvDetail.ListItems(LoopIndex1)
strSql = "Update [Stock File] " & _
"Set Location = 'Sold' " & _
"Where [Serial Number] = '" & Serial & "'"

db.Execute (strSql), dbFailOnError

CommitTrans

Is it possible to check the record to see if it is free before submitting
the changes or to get Access to return a error so I can trap the error?
I am not a programmer so please give me as much detail as possible with
examples.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top