Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 84A399FB276 for ; Fri, 14 Sep 2007 11:04:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 62012-07 for ; Fri, 14 Sep 2007 11:04:52 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from iserver.abag.ca.gov (iserver.abag.ca.gov [198.31.87.3]) by postgresql.org (Postfix) with ESMTP id 47BF39F9BA7 for ; Fri, 14 Sep 2007 11:04:51 -0300 (ADT) Received: from groupwise.abag.ca.gov (groupwise.abag.ca.gov [198.31.87.26]) by iserver.abag.ca.gov (8.13.6/8.13.6) with ESMTP id l8EE4jlc027932 for ; Fri, 14 Sep 2007 07:04:45 -0700 (PDT) Received: from D01-MTA by groupwise.abag.ca.gov with Novell_GroupWise; Fri, 14 Sep 2007 07:04:45 -0700 Message-Id: <46EA3277020000A700004CAC@groupwise.abag.ca.gov> X-Mailer: Novell GroupWise Internet Agent 7.0.1 Date: Fri, 14 Sep 2007 07:04:23 -0700 From: "Fred Parkinson" To: Subject: Way to reveal record locks? Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/14 X-Sequence-Number: 9177 I am using MS Access as a front end to a postgres database running on a = Solaris Unix box, using odbc as the communication medium. One of the main tools of my Access app is a process that runs at night to = process student progress in an online training system. A couple of nights ago the app started generating the error: "Runtime error 3046: Could not save; currently locked by another user" and it is on the app screen when I come in in the morning, locking up the = program and keeping it from completing. I trap as many errors as I can = think of, but this is escaping trap so I don't know where in the code it = is happening. I am sure that the error is not from an Access user A. because the process = runs between 11pm and 1am and 2. because there are no .ldb files open, a = file type created when a user opens an access application. So, is there any way to determine what records are locked, if in fact that = is the problem? (As you know, the error reported may not actually be the = underlying problem). Most of the program is designed with classes instantiated as objects, and = in Access when I take the 'debug' option of the error message box, all = that happens is the program goes to the first process of the first object, = so that is useless. If no one has an answer I will probably write a routine that steps through = every record of every table and attempts to lock it to see if I can = reproduce the error that way. Thanks in advance for any suggestions anyone may offer. Fred Parkinson