trevorwilliams2
Programmer
**Access 2003
I have a form that is continous.
I have a combo box named NoteAuthor (row one, not visible is contactID)
In the on Open of the form I use FormatCondition to lock the field with:
Dim ObjToChange As FormatCondition
Set ObjToChange = Me.NoteAuthor.FormatConditions.Add(acFieldValue, acNotEqual, CurUserContactID)
ObjToChange.Enabled = False
(CurUserContactID is 34349, if not = to 34349 then lock the field)
This works good.
What I would like to do:
Lock all other fields in the record (for that record) when the above condition is met for NoteAuthor.
Any suggestions?
I have a form that is continous.
I have a combo box named NoteAuthor (row one, not visible is contactID)
In the on Open of the form I use FormatCondition to lock the field with:
Dim ObjToChange As FormatCondition
Set ObjToChange = Me.NoteAuthor.FormatConditions.Add(acFieldValue, acNotEqual, CurUserContactID)
ObjToChange.Enabled = False
(CurUserContactID is 34349, if not = to 34349 then lock the field)
This works good.
What I would like to do:
Lock all other fields in the record (for that record) when the above condition is met for NoteAuthor.
Any suggestions?