I have a table with relational fields and one table inparticular has a section that I am currently having trouble with..
The fields are as follows:
Table: UpdateCheck
Fields: 'NameOfUserUpdating' 'DateUpdated' 'LastUpdated'
NameOfUserUpdating will log the system name of the user editing the record.
DateUpdated will log the date that the record is updated
LastUpdated will log the date that the record was updated previously (allowing backups to be found quicker.)
The problem I face is that I want the 'save' button to validate the record first to make sure that all the required info is present and then compare the old record against the new. If there have been no changes then the user will be informed that no changes have been made. If changes have been made, then the date that the record was altered will be logged in the 'DateUpdated' field BUT the date that was there previously will be transferred into the 'LastUpdated' field.
How do I do this?
The fields are as follows:
Table: UpdateCheck
Fields: 'NameOfUserUpdating' 'DateUpdated' 'LastUpdated'
NameOfUserUpdating will log the system name of the user editing the record.
DateUpdated will log the date that the record is updated
LastUpdated will log the date that the record was updated previously (allowing backups to be found quicker.)
The problem I face is that I want the 'save' button to validate the record first to make sure that all the required info is present and then compare the old record against the new. If there have been no changes then the user will be informed that no changes have been made. If changes have been made, then the date that the record was altered will be logged in the 'DateUpdated' field BUT the date that was there previously will be transferred into the 'LastUpdated' field.
How do I do this?