G
Guest
My problem is that I cannot seem to get the following Private Function to
work. This function is triggered by running the following code in an After
Update of a combo box. This combo and all of the field referenced in the code
are in the same form.
Private Function UpdateTimeSeconds()
If Me.TaskID = 57 Then
If Me.chkOccursInFactory = True Then
Me.TimeSeconds = Me.txtJimBob * 0.1 * 60
Else
Me.TimeSeconds = Null
End If
End If
End Function
The result of this code is negative the code does not perform the
calculation and paste it in the TimeSeconds field nor does it change
TimeSeconds to Null. The fields are editable and not locked. And I have tried
this code in many different Event locations but no action seems to take
place. Any ideas?
Thanks,
Dennis
work. This function is triggered by running the following code in an After
Update of a combo box. This combo and all of the field referenced in the code
are in the same form.
Private Function UpdateTimeSeconds()
If Me.TaskID = 57 Then
If Me.chkOccursInFactory = True Then
Me.TimeSeconds = Me.txtJimBob * 0.1 * 60
Else
Me.TimeSeconds = Null
End If
End If
End Function
The result of this code is negative the code does not perform the
calculation and paste it in the TimeSeconds field nor does it change
TimeSeconds to Null. The fields are editable and not locked. And I have tried
this code in many different Event locations but no action seems to take
place. Any ideas?
Thanks,
Dennis