F
Fysh
I am using Access 2k. I have a textbox that when the form
loads, it automatically has some information in the
textbox. The user can continue to edit the textbox. After
they are finished editing they can select other
information on the form which can update the textbox as
well. However, I am running in circles. How can I reset
the textbox back to it's original state if a checkbox is
selected or unselected? The following works fine if the
user selects it once, but if they select, unselect, then
reselect it updates the textbox twice. I know this is
crazy, but believe me I can see some users actually doing
this.
Private Sub Anomaly_Enter()
Me!Anomaly.SelStart = Me!Anomaly.SelLength
End Sub
Private Sub Critical_AfterUpdate()
If Me.Critical = True Then
Me.Anomaly = "© " & Me.Anomaly
Else
Me.Anomaly = Me.Anomaly
End If
End Sub
Thanks for any responses
loads, it automatically has some information in the
textbox. The user can continue to edit the textbox. After
they are finished editing they can select other
information on the form which can update the textbox as
well. However, I am running in circles. How can I reset
the textbox back to it's original state if a checkbox is
selected or unselected? The following works fine if the
user selects it once, but if they select, unselect, then
reselect it updates the textbox twice. I know this is
crazy, but believe me I can see some users actually doing
this.
Private Sub Anomaly_Enter()
Me!Anomaly.SelStart = Me!Anomaly.SelLength
End Sub
Private Sub Critical_AfterUpdate()
If Me.Critical = True Then
Me.Anomaly = "© " & Me.Anomaly
Else
Me.Anomaly = Me.Anomaly
End If
End Sub
Thanks for any responses