i use this code: - Me.txbdate.Locked = "true" Me.txbtime.Locked = "true" Me.txbcompany.Locked = "true" Me.txblead.Locked = "true" Me.txbtelephone.Locked = "true" Me.txbsource.Locked = "true" Me.txbsalesman.Locked = "true" sometimes i want to unlock all of the above, and sometimes i want to lock them all - to save typing it all out... can i create a function? that will let me type something like controls(lock) to lock them all or controls(unlock) to unlock them all i've never made my own function before and wouldn't know where to start? am i thinking the right thing here? or am i just confused? if i'm right. please give me step by step instructions on how to create the function, thanks, gary.