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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

make a VBA button to disable a text

Status
Not open for further replies.

allenEd

Technical User
Nov 14, 2002
129
GB
Hi,

I have a form with a continuous subform in it. In the subform, if I make a VBA button to disable a text box called txtBox, every txtBox in the form (continuous) is disabled. How do I get the button to disable only the record that the button is clicked in to be disabled.

eg. the code is


Private Sub cmdTxtBoxDisable_Click()
Me.txtBox.Enabled = False
End Sub


many thanks!
Allen
 
You will need to use conditional formatting to achieve the results you want.

RuralGuy (RG for short) aka Allan Bunch MS Access MVP acXP winXP Pro
Please respond to this forum so all may benefit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top