I am having the hardest time with what should be very simple. I created a new database, there is a table with a field called AddedbyUser. I want to populate the field from a form with the network ID. I have done this before on all of my other databases and it works fine.
On the BeforeUpdate I use,
On this database I get the error;
The expression Before Update you entered as the event property setting produced the following error: Object or class does not support the set of events.
*The expression may not result in the name of a macro, the name of a user-defined function or [Event Procedure].
*There may have been an error evaluating the function, event or macro.
I have copied everything over from my previous working databases where this works.
I have even made sure that all the same references were checked.
I am baffled as to why this is not working now.
Can anyone help?
On the BeforeUpdate I use,
Code:
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me!AddedbyUser = Environ("username")
End Sub
On this database I get the error;
The expression Before Update you entered as the event property setting produced the following error: Object or class does not support the set of events.
*The expression may not result in the name of a macro, the name of a user-defined function or [Event Procedure].
*There may have been an error evaluating the function, event or macro.
I have copied everything over from my previous working databases where this works.
I have even made sure that all the same references were checked.
I am baffled as to why this is not working now.
Can anyone help?