Tab Stop - Code to Disable/Enable Upon Request

C

ChrisR214

Is there a way to have a push-button on the form to be able to assign tab
stops "ON" to various fields, so I can turn them on and off by pushing the
button? Or do I have have to go into properties every time?

Thanks!
 
D

Douglas J. Steele

Assuming you want to turn off the tab stop on a control named txtComment,
you can put code like:

Me.txtComment.TabStop = False

To turn it back on, you'd use

Me.txtComment.TabStop = True
 
Top