J
jalexander via AccessMonster.com
How do I log the value from my field
[strModifiedBy]
to another field called
[SlsRep]
but only the first time the form is opened?
I'm using this code to grab the Windows user:
---------------------------
Private Sub Form_BeforeUpdate(Cancel As Integer)
dtmModified = Now
strModifiedBy = Environ("username")
End Sub
---------------------------
But when other users look-up the Order later, the value keeps changing?
I need to move the user who first created the Order to the SlsRep field in my
table.
Any ideas?
Thanks,
cw
[strModifiedBy]
to another field called
[SlsRep]
but only the first time the form is opened?
I'm using this code to grab the Windows user:
---------------------------
Private Sub Form_BeforeUpdate(Cancel As Integer)
dtmModified = Now
strModifiedBy = Environ("username")
End Sub
---------------------------
But when other users look-up the Order later, the value keeps changing?
I need to move the user who first created the Order to the SlsRep field in my
table.
Any ideas?
Thanks,
cw