I writing a script outside Access to remove table locks that aren't cleanly removed when I reboot the server the database is on without remembering its in use (or when the power goes). I'm writing it using AutoIt and have two delete queries executing nicely, but the update query I also need fails.
I'm using access 2007 and a .mdb file. I went into Access and created the query:
And under the design tab on the ribbon, I hit "Run", but nothing gets changed. I figure the query is correct because Access wrote it for me but I'm lost as to why it's not affecting the rows. No error message is given.
I'm using access 2007 and a .mdb file. I went into Access and created the query:
Code:
UPDATE LOCKS SET LOCKS.Locked = "N"
WHERE LOCKS.Locked = "Y"