Text box enabled

  • Thread starter EMILYTAN via AccessMonster.com
  • 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?
 
B

BruceM

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.
 

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

Top