Jump to content

Record saved more than once


This topic is 5618 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

How do I determine if a record has been saved more than once?

I have a field called "RecordStatus" in every table. I want to display the entered user, entered date and entered time in this field. If the record has been edited after the initial entry I want to display (in addition to the entered data fields previously described) the modified user, modified date and modified time.

To get the result I want, I have compared the entered user and modified user along with the entered timestamp and the modified timestamp. Since the entered timestamp and the modified timestamp will always be different, all six fields of information show up on every entry.

Any ideas?

Posted

One thing that I discovered was Get ( RecordModificationCount ).

This allows the modified information to appear only if the record has been edited and without any extra fields or code.

Example:

If (

Get ( RecordModificationCount ) ≠ 0

;

"Last Modified:" & ¶ &

" by " & RecordModifiedUserID & ¶ &

" on " & GetAsDate ( RecordModifiedTimestamp ) & ¶ &

" at " & GetAsTime ( RecordModifiedTimestamp )

)

This topic is 5618 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.