B
brfender
Hi. I am using Access 2003.
I have a text box that is populated by the user with a date. After the date
is updated, another date in a different text box is calculated based on a
number of select statements. The calculations work fine. However, when a
date is removed from the user's text box, I would like the calculated text
box to empty. I can't seem to get it to empty. There are no errors; the old
calculated date remains.
Here is a sample of the code I am using:
Private Sub txtActualIntro_AfterUpdate()
If Me.txtStart = "" Then
Me.txtPlanComplete = ""
ElseIf Me.txtStart <> "" Then
'Select Case statements choose the calculation _
at this point if a date is present in txtStart _
(Too long to list, but they work correctly)
End If
End Sub
Again there are no errors. I just want txtPlanComplete to be blank if
txtStart is removed.
Thanks for the help.
I have a text box that is populated by the user with a date. After the date
is updated, another date in a different text box is calculated based on a
number of select statements. The calculations work fine. However, when a
date is removed from the user's text box, I would like the calculated text
box to empty. I can't seem to get it to empty. There are no errors; the old
calculated date remains.
Here is a sample of the code I am using:
Private Sub txtActualIntro_AfterUpdate()
If Me.txtStart = "" Then
Me.txtPlanComplete = ""
ElseIf Me.txtStart <> "" Then
'Select Case statements choose the calculation _
at this point if a date is present in txtStart _
(Too long to list, but they work correctly)
End If
End Sub
Again there are no errors. I just want txtPlanComplete to be blank if
txtStart is removed.
Thanks for the help.