J
JCabralda
Guest
I thought this would be simple but somehow it isn't working...
When the user moves to a new record, I just want to check whether the record is a new record or a previously existing one. If it's new, I want to reset the values of some unbound checkboxes so they're all unchecked. I'm using this code in the On Current event of the form:
Private Sub Form_Current()
If Me.NewRecord = True Then
Hospitalization.Value = False
CongenitalMalformation.Value = False
Disability.Value = False
[Life-Threathening].Value = False
Death.Value = False
Other.Value = False
NoActionTaken.Value = False
DoseReduction.Value = False
TreatmentInterrupted.Value = False
DiscontinuedStudy.Value = False
End If
End Sub
However, it resets the checkbox values to False even if the record is previously existing. What am I doing wrong?
When the user moves to a new record, I just want to check whether the record is a new record or a previously existing one. If it's new, I want to reset the values of some unbound checkboxes so they're all unchecked. I'm using this code in the On Current event of the form:
Private Sub Form_Current()
If Me.NewRecord = True Then
Hospitalization.Value = False
CongenitalMalformation.Value = False
Disability.Value = False
[Life-Threathening].Value = False
Death.Value = False
Other.Value = False
NoActionTaken.Value = False
DoseReduction.Value = False
TreatmentInterrupted.Value = False
DiscontinuedStudy.Value = False
End If
End Sub
However, it resets the checkbox values to False even if the record is previously existing. What am I doing wrong?