toggle button coding

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

I have a subform that is read only. I would like to toggle data entry
on and off, using a toggle button. I can't figure out the code to put
behind the on-click event. Can anyone help with this?

Thanks

Dave B
 
Try:

IF Me.SubformName.Locked = false then
Me.SubformName.Locked = True
Else
Me.SubFormName.Locked = False
End IF
 
Back
Top