Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

textbox question

Status
Not open for further replies.

hongbin81

Technical User
Joined
Jul 4, 2003
Messages
61
Location
KR
Is there a way to deactiviate the textbox so user can't change the original textbox caption?

 
ContentEditable > False

or

Disabled > True
 
Textboxes don't have Captions, they have values. You could have code in the on current event of a form that would disable and/or lock a text box.

If IsNull(Me.txtLockMe) Then
Me.txtLockme.Locked = False
Me.txtLockMe.Enabled = True
Else
Me.txtLockme.Locked = True
Me.txtLockMe.Enabled = False
End IF

Duane
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top