Hello,
I have a Main form with a Datasheet Subform to display records. One of the fields is a CheckBox. What I'm trying to do is update another field on the Datasheet when the value of the CheckBox Changes ( Eg. When true Add 3 to another field, When False Make other Field 0 ). I'm trying to use the AFTERUPDATE Property of the checkbox with recordset clone to accomplish this, but this doesn't seam to work.
The following code is what I've tried
Code:
Private Sub Foreman_AfterUpdate()
Set rst = Me.RecordsetClone
If rst![Foreman] = True Then
rst.Edit
rst![AdditionalWage] = rst![AdditionalWage] + 3
rst.Update
Else
rst.Edit
rst![AdditionalWage] = 0
rst.Update
End If
rst.Close
Set rst = Nothing
Is there another Property I should be using Instead?
Steve