G
Guest
I have the following code on one of my forms to insert the value of current
user into my form (and record in table). However, I can get a msgbox up with
"the current user is x" so i know the current user bit is right however
nothing will happen when I try to use the form. No value is inserted into
the field and i can just type what i want in there. I don't get any errors.
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.CurrentUser = CurrentUser
End Sub
What's wrong with it please?
TIA
user into my form (and record in table). However, I can get a msgbox up with
"the current user is x" so i know the current user bit is right however
nothing will happen when I try to use the form. No value is inserted into
the field and i can just type what i want in there. I don't get any errors.
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.CurrentUser = CurrentUser
End Sub
What's wrong with it please?
TIA