pg.ddx.io pgsql-odbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Matthew and Karen Brown <browns@usadatanet.net>
To: Fred Parkinson <FredP@abag.ca.gov>
To: pgsql-odbc@postgresql.org
Subject: Re: Force commit in M$ Access?
Date: Wed, 18 Feb 2004 14:04:02 -0500
Message-ID: <4033B722.6010904@usadatanet.net> (raw)
In-Reply-To: <s033418d.060@groupwise.abag.ca.gov>
References: <s033418d.060@groupwise.abag.ca.gov>
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
>
>
>
Attachments:
browns.vcf (text/x-vcard, 302B) download
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
view thread (4+ messages) latest in thread
Message-ID: <4033B722.6010904@usadatanet.net> Permalink: ../4033B722.6010904@usadatanet.net/ Also on: postgresql.org/message-id/4033B722.6010904@usadatanet.net ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-odbc@postgresql.org Cc: browns@usadatanet.net, FredP@abag.ca.gov Subject: Re: Force commit in M$ Access? In-Reply-To: <4033B722.6010904@usadatanet.net> References: <s033418d.060@groupwise.abag.ca.gov> <4033B722.6010904@usadatanet.net> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox