Hey Charles,
I really think this isn't as difficult as it seemed at first. Playing with a
continuous form I have, I found that the following works. The form has 4
fields, MCode, MFreq, MTitle,MEstHrs and LCauseCode. I put the following on
the Got Focus event of the field I want to be able to lock, based on whether
or not another field, LCauseCode, had been populated with data. On records
with NO LCauseCode data, I was unable to edit the MCode, but on the records
which have the LCauseCode entered the MCode can be changed. Enter or delete
the LCauseCode and then click back to the MCode field and poof, behavior is
as required.
''' code Start
Private Sub MCode_GotFocus()
If IsNull(Me.LCauseCode) Then
Me.MCode.Locked = True
Else: Me.MCode.Locked = False
End If
End Sub
''' code end
I hope I put all the data back to original LOL - shouldn't play with live
data <grin>
I'm sure you could use similar code on the GotFocus event of the fields you
would like to be able to lock programmatically.
Please let me know if this works for you,
Susan