Question : Locking Field On Continuous Form

I have created a continous form. On the form I have a checkbox (ChemicalApplication). When this checkbox is checked I would like to lock a textbox (Treatment Area) for just this record. All records that this checkbox is not checked should remain unlocked.

Could somone please advise on how I can do this.

Thank you

Answer : Locking Field On Continuous Form

use the form's current event

private sub form_current()

me.[Treatment Area].locked=me.ChemicalApplication

end sub

and in the afterupdate event of checkbox ChemicalApplication

private sub ChemicalApplication_afterupdate()

me.[Treatment Area].locked=me.ChemicalApplication

end sub



Random Solutions  
 
programming4us programming4us