X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 2C80CD1D315 for ; Wed, 18 Feb 2004 19:05:06 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 48758-04 for ; Wed, 18 Feb 2004 15:04:59 -0400 (AST) Received: from mxa.usadatanet.net (mxa.usadatanet.net [66.218.0.23]) by svr1.postgresql.org (Postfix) with ESMTP id 93309D1E136 for ; Wed, 18 Feb 2004 15:04:57 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by mxa.usadatanet.net (Postfix) with ESMTP id C3B76A6E2; Wed, 18 Feb 2004 14:04:56 -0500 (EST) Received: from mxa.usadatanet.net ([127.0.0.1]) by localhost (mxa [127.0.0.1]) (amavisd-new, port 10024) with SMTP id 28707-05; Wed, 18 Feb 2004 14:04:56 -0500 (EST) Received: from director6.usadatanet.net (director6.usadatanet.net [66.218.0.7]) by mxa.usadatanet.net (Postfix) with ESMTP id 83C41A6B0; Wed, 18 Feb 2004 14:04:56 -0500 (EST) Received: from usadatanet.net (dial-66-218-25-69.usadatanet.net [66.218.25.69]) by director6.usadatanet.net (Postfix) with ESMTP id 33B1A2B695; Wed, 18 Feb 2004 14:03:08 -0500 (EST) Message-ID: <4033B722.6010904@usadatanet.net> Date: Wed, 18 Feb 2004 14:04:02 -0500 From: Matthew and Karen Brown Reply-To: The Browns User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Fred Parkinson , pgsql-odbc@postgresql.org Subject: Re: Force commit in M$ Access? References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------080100060104040500090803" X-Virus-Scanned: by amavisd-new at usadatanet.net X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/45 X-Sequence-Number: 3798 This is a multi-part message in MIME format. --------------080100060104040500090803 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Fred, You might try the following code in whatever handler you wish (button click, etc): DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70 This will save the current record. -- Matt Brown Fred Parkinson wrote: >Folks > >Does anyone know if it is possible, when using an Access bound form >against a postgresql table, to force changes to commit? > >When the user navigates to a new record Access updates the linked >postgres table, but due to a design flaw in the data structures, my life >would be easier if I could force the changed data to update before the >user navigates to a new record. > >My initial solution was to issue an UPDATE query whenever the user >changed the offending data, but that results in the error >"You and another user have updated the same data, do you want >to:Discard changes, Copy to clipboard..." (something like that) >as soon as the user closes the form or moves to a new record. > >(Yes, I know the correct answer is to fix the flaw, but the managers >here want to slay dragons with beebee guns and don't want to spend >money.) > >Thanks in advance for your help! > >Fred Parkinson >Grand Canyon Software >For >The Association of Bay Area Governments >510-464-7931 > >---------------------------(end of broadcast)--------------------------- >TIP 8: explain analyze is your friend > > > --------------080100060104040500090803 Content-Type: text/x-vcard; charset=utf8; name="browns.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="browns.vcf" begin:vcard fn:Matthew Brown n:Brown;Matthew org:Grace Fellowship Church of the Lehigh Valley adr:;;21 North Main Street;Coopersburg;PA;18036;USA email;internet:mattb@gracelehigh.org tel;work:(610) 282-8066 tel;fax:(610) 282-5708 x-mozilla-html:TRUE url:http://www.gracelehigh.org version:2.1 end:vcard --------------080100060104040500090803--