Make a Textbox uneditable

  • Thread starter Thread starter Guest
  • Start date Start date
Go to the Data tab of the properties sheet for the TextBox and play with the
Enabled and Locked properties!
 
Clara, when do you want to make it uneditable?

Is the textbox being filled thru code and you never want the user to be able
to edit it? If so, Ruralguy's suggestion will do the job.

Or do you want the user to be able to fill in data for the textbox in a new
record but not be able to edit the data at a later time? In this case
something like this:

Private Sub Form_Current()
If Not IsNull(Me.txtYourBox) Then
Me.txtYourBox.Locked = True
Else: Me.txtYourBoxB.Locked = False
End If
End Sub

where txtYourBox is the actuak name of your textbox.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
 

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

Back
Top