Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6208303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:47:11+00:00 2026-05-24T05:47:11+00:00

I am designing a database where I wish to track changes in my tables,

  • 0

I am designing a database where I wish to track changes in my tables, in this case the “person” table, such that what appears in my Access user interface to be an edit to a person record, actually appears in my PostgreSQL backend to be a new record, with a timestamp and username field reflecting the time and person that made that edit.

First of all, I’ve never attempted a design like this to begin with, so some reassurance that I’m going about this sensibly would be nice. My primary question, however, is how to implement this. In general, Access forms seem very much designed to edit records, and I’m not sure how I can cleanly go about changing its behaviour to insert new ones instead.

As I understand it, the BeforeUpdate event fires before a database-level update. What I’d love to do is edit my form’s BeforeUpdate method with code something like:

  1. Cancel the database update
  2. Update the timestamp in Access for the record it’s working with
  3. Null the recordid field from the record, which is an auto_increment primary key, so that on insert, a new recordid will be assigned automatically.
  4. Insert a new copy of the record I’m working with in Access
  5. If necessary (I think it is?), point my access form to the new record it just inserted (by the way, how do I actually find the new record I inserted? Can I get a reference to it during the insert, or to the auto-incremented primary key that was generated?)

Thanks for any help anyone can provide.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:47:11+00:00Added an answer on May 24, 2026 at 5:47 am

    I would allow Access to update its tables and just create an insert statement to your PostgreSQL backend. You can use it as your log. Trying to switch out the current record in access just seems to complex and unecessary. Changing the primary key is uncessary and should be used to reference the changed data records in the other database.

    You can use VBA in the code behind the form and just create another record with the current data, but use the Now() function for the timestamp value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're designing a database that has a simple table called Person. Each person can
I am designing database tables for a master-detail scenario. The specific requirement is that
I am designing a database for a project. I have a table that has
I am designing this database that must maintain a history of employee salary and
I'm designing a database with three tables: user, game and (probably) register. I want
When designing a database to use MVCC (Multi-Version Concurrency Control), you create tables with
I'm designing a database table which will hold filenames of uploaded files. What is
I got a project of designing a Database. This is going to be my
When designing a database, what usually determines what tables will be the primary and
I'm planing / designing my database for my current project (Java). For this project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.