BobJacksonNCI
Technical User
I'm having trouble storing the NT/2000 logon name of
the person who changes a record. I store the name
of the record's creator by setting the default value
of one of the fields to (suser_name()). I thought:
Forms!frm_Missed_PUNCH_STATUS.txtStatusChgBy = GetUser()
Function GetUser()
GetUser = Environ("Username"
End Function
in the form's BeforeUpdate event would work. But
that results in the run-time error "You can't
assign a value to this object".
Note that the form control is bound to a field
in the table.
So, this is a two-parter for folks who can assist me.
(Please!)
1. How can I store the name of the person who changes
a record in a form bound to an SQL table.
2. Would I have been better off using unbound forms?
(My reading suggested bound would be better, but
in this ADP using Access 2000 with SQL 7,
I have had a LOT of problems and workarounds.)
As always, Thank You for taking your time to help!
Bob
the person who changes a record. I store the name
of the record's creator by setting the default value
of one of the fields to (suser_name()). I thought:
Forms!frm_Missed_PUNCH_STATUS.txtStatusChgBy = GetUser()
Function GetUser()
GetUser = Environ("Username"
End Function
in the form's BeforeUpdate event would work. But
that results in the run-time error "You can't
assign a value to this object".
Note that the form control is bound to a field
in the table.
So, this is a two-parter for folks who can assist me.
(Please!)
1. How can I store the name of the person who changes
a record in a form bound to an SQL table.
2. Would I have been better off using unbound forms?
(My reading suggested bound would be better, but
in this ADP using Access 2000 with SQL 7,
I have had a LOT of problems and workarounds.)
As always, Thank You for taking your time to help!
Bob