G
Guest
Hello,
I have a bound form which displays records which record steps through a
process. 1 text box displays an ID number and the rest are text boxes which
display a date. A date being present indicates that step in the process is
complete. No updates, changes, deletes, adds allowed on this form.
Navigation buttons are on so I can scroll through the records. The form also
has 2 txtboxes that are used to display how many steps in the process are
completed and a completion percentage.
Form has buttons to navigate through the records. When I first open the
form, the first record is displayed. IDNumber and dates are all present and
the two text boxes display the correct data. When I hit one of the
navigation buttons to scroll through the records, I have the IDNumber Change
Event coded to re-calc the 2 text boxes for the current record, however, the
Change event does not seem to fire. Breakpoint is set for the Change event
procedure and it never executes.
Can anyone detail how the change event operates, when it should fire, etc.
And, help me code this correctly?
IDNumber_Change procedure is below.
Private Sub txtS3ID_Change()
'Determine how many dates have been provided and display a completion
percentage.
Dim StepsComp As Integer
StepsComp = 0
If Not IsNull(txtEmplStartDate) Then
StepsComp = StepsComp + 1
End If
If Not IsNull(txtARFSubmitDate) Then
StepsComp = StepsComp + 1
End If
If Not IsNull(txtS3IDNotifyDate) Then
StepsComp = StepsComp + 1
End If
If Not IsNull(txtXEmailSetNotifyDate) Then
StepsComp = StepsComp + 1
End If
If Not IsNull(txtXEANSetNotifyDate) Then
StepsComp = StepsComp + 1
End If
txtStepsCompleted = StepsComp
txtPercentComplete = (StepsComp / 5)
End Sub
TIA,
Rich
I have a bound form which displays records which record steps through a
process. 1 text box displays an ID number and the rest are text boxes which
display a date. A date being present indicates that step in the process is
complete. No updates, changes, deletes, adds allowed on this form.
Navigation buttons are on so I can scroll through the records. The form also
has 2 txtboxes that are used to display how many steps in the process are
completed and a completion percentage.
Form has buttons to navigate through the records. When I first open the
form, the first record is displayed. IDNumber and dates are all present and
the two text boxes display the correct data. When I hit one of the
navigation buttons to scroll through the records, I have the IDNumber Change
Event coded to re-calc the 2 text boxes for the current record, however, the
Change event does not seem to fire. Breakpoint is set for the Change event
procedure and it never executes.
Can anyone detail how the change event operates, when it should fire, etc.
And, help me code this correctly?
IDNumber_Change procedure is below.
Private Sub txtS3ID_Change()
'Determine how many dates have been provided and display a completion
percentage.
Dim StepsComp As Integer
StepsComp = 0
If Not IsNull(txtEmplStartDate) Then
StepsComp = StepsComp + 1
End If
If Not IsNull(txtARFSubmitDate) Then
StepsComp = StepsComp + 1
End If
If Not IsNull(txtS3IDNotifyDate) Then
StepsComp = StepsComp + 1
End If
If Not IsNull(txtXEmailSetNotifyDate) Then
StepsComp = StepsComp + 1
End If
If Not IsNull(txtXEANSetNotifyDate) Then
StepsComp = StepsComp + 1
End If
txtStepsCompleted = StepsComp
txtPercentComplete = (StepsComp / 5)
End Sub
TIA,
Rich