Text box enabled

  • Thread starter Thread starter EMILYTAN via AccessMonster.com
  • Start date Start date
E

EMILYTAN via AccessMonster.com

I have a subform

Below is my code:-

Code:
------------------------------------------------------------------------------
--

Private Sub txtW_Remarks_AfterUpdate()
Me.txtW_AdjustedQty.Enabled = True
End Sub
------------------------------------------------------------------------------
--



I want this txtAdjustedQty to be enabled for that specific line....
Is there any way to only enabled for specific line as same as the remarks
being updated?
 
Do you mean that if txtW_Remarks contains specific text, you want
txtAdjustedQty (is that the same as txtW_AdjustedQty?) to be enabled,
otherwise it is not enabled? If so:

If txtW_Remarks = "Some text" Then
Me.txtW_AdjustedQty.Enabled = True
Else
Me.txtW_AdjustedQty.Enabled = False
End If

Note that you would need the same code in the form's Current event.
 
Back
Top