I would like to know how to have access pull the name of the field that had data changed in it.
I have a form, that has AfterUpdate set to the following...
Set rs = CurrentDb.OpenRecordset("Audit")
With rs
.AddNew
!tblProject_ID = Me.ID
!last_update = Now()
!updated_by = fOSUserName()
!FieldName = Field.Name
.Update
End With
Everything works, but the FieldName function. How can I get Access to tell me which field had a change made to it? I put the Field.Name in there as a shot in the dark.
Any help would be GREATLY appreciated!
I have a form, that has AfterUpdate set to the following...
Set rs = CurrentDb.OpenRecordset("Audit")
With rs
.AddNew
!tblProject_ID = Me.ID
!last_update = Now()
!updated_by = fOSUserName()
!FieldName = Field.Name
.Update
End With
Everything works, but the FieldName function. How can I get Access to tell me which field had a change made to it? I put the Field.Name in there as a shot in the dark.
Any help would be GREATLY appreciated!