Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query last modify date/time of table row

Status
Not open for further replies.

ebtrr

IS-IT--Management
Mar 5, 2022
1
0
0
US
Is there a way in ObjectPAL to query the last time a specific row of a Paradox table was modified?
 
No,
Howevr, There are two ways to solve the problem of auditing record changes.
1. create a datetime field and update it each time it the record is touched. This tells you when, but not what was edited.
Or
2. (my method) - See Attachment
I have one primary table that I needed to track 200+ data elements
I created a tracking table (tablename_Activiy.db)
Then I created a global objectpal function the was called from the CHANGEVALUE event of the forms that edit that table.
Each time anything on the form is changed, it logs when, who, and the before and after values. I also have a session variable which tracks everything that was changed during a particular login.

It is more work to do this, but if detail is important, then this is the way to go.

 
 https://files.engineering.com/getfile.aspx?folder=df85202a-a104-4a26-8ebd-653842c8e697&file=tracking_table_structure.png
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top