Hi all,
I am creating an Access DB, but I would like it to include a modified by column in the table data. Is there a way to have this automatically populated on modification? Thanks Luke
I've put a hidden field in a form for this, and tried the following macro applied to the form:
But it didn't work. I just get a #Name? in the ModifiedBy field.
Does anyone have any ideas.
Thank you
Luke
I am creating an Access DB, but I would like it to include a modified by column in the table data. Is there a way to have this automatically populated on modification? Thanks Luke
I've put a hidden field in a form for this, and tried the following macro applied to the form:
Code:
Private Sub
Form_BeforeInsert(Cancel As Integer)
Me.ModifiedBy = Environ("username") ' this is the NT loginID
End Sub
But it didn't work. I just get a #Name? in the ModifiedBy field.
Does anyone have any ideas.
Thank you
Luke