toggle button coding

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
 
J

Jackie L

Try:

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top