Hi,
I have used the following code to grey out a text box (Date Accepted) at all times except when the item in the Quote status is "Accepted".
-------------------
Private Sub QuoteStatus_AfterUpdate()
If Me!QuoteStatus = "Accepted" Then
Me!AcceptedDate.Enabled = True
Else
Me!AcceptedDate.Enabled = False
End If
End Sub
-------------------
This code works fine expect when you move to a different record or save it. the accepted date field should still be disabled as the value for quote status hasn't changed, but instead it allows the user to type a date in anyway whether or not the quote status is "Accepted" or not.
I would appreciate some help on this small problem.
Thanks.
I have used the following code to grey out a text box (Date Accepted) at all times except when the item in the Quote status is "Accepted".
-------------------
Private Sub QuoteStatus_AfterUpdate()
If Me!QuoteStatus = "Accepted" Then
Me!AcceptedDate.Enabled = True
Else
Me!AcceptedDate.Enabled = False
End If
End Sub
-------------------
This code works fine expect when you move to a different record or save it. the accepted date field should still be disabled as the value for quote status hasn't changed, but instead it allows the user to type a date in anyway whether or not the quote status is "Accepted" or not.
I would appreciate some help on this small problem.
Thanks.