Re: Force commit in M$ Access? - Mailing list pgsql-odbc

From Matthew and Karen Brown
Subject Re: Force commit in M$ Access?
Date
Msg-id 4033B722.6010904@usadatanet.net
Whole thread Raw
In response to Force commit in M$ Access?  ("Fred Parkinson" <FredP@abag.ca.gov>)
List pgsql-odbc
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
>
>
>

Attachment

pgsql-odbc by date:

Previous
From: "Nicolas PINTO"
Date:
Subject: ODBC driver
Next
From: Rachel Willmer
Date:
Subject: Can I specify a SCHEMA in the ODBC string?