In my form I want to lock a field from data entry or make it a grey shaded non active box (I know all the technical terms!!!), until another box has data in it.
You need to set its enabled to false by default and then do something on either exit or after update like
Code:
if not isnull(me.GottaHaveDataBox) and me.GottaHaveDataBox<>"" then
me.CurrentlyDisabledBox.enable
else
msgbox "Put something in the box please"
'cancel=true '- if on exit and u don't want them to move on unless it's filled out
end if