B
Bonnie
Hi there. Using A02 on XP. Have a DepositForm and want to
have the field [DateDep] lock after data entry. (Edits are
allowed on a separate Supervisor form.) I have tried to
put the following in a variety of event procedures but
having trouble locking it down.
I put this in the OnGotFocus and it works initially but
after you click okay to the message, you can edit the
field. Ugh!
If Not IsNull(Me.DateDep) Then
MsgBox "This field has already been filled."
DoCmd.CancelEvent
Exit Sub
End If
Should I replace CancelEvent with Me.DateDep.Enabled=False?
Problem is that my form is a continuous form showing all
the checks received that day for processing. Don't want to
disable [DateDep] for the other records until they have
also been keyed in.
Thanks in advance for any and all help or advice!!!
have the field [DateDep] lock after data entry. (Edits are
allowed on a separate Supervisor form.) I have tried to
put the following in a variety of event procedures but
having trouble locking it down.
I put this in the OnGotFocus and it works initially but
after you click okay to the message, you can edit the
field. Ugh!
If Not IsNull(Me.DateDep) Then
MsgBox "This field has already been filled."
DoCmd.CancelEvent
Exit Sub
End If
Should I replace CancelEvent with Me.DateDep.Enabled=False?
Problem is that my form is a continuous form showing all
the checks received that day for processing. Don't want to
disable [DateDep] for the other records until they have
also been keyed in.
Thanks in advance for any and all help or advice!!!