mizenerman
MIS
I'm curious to know why this isn't working and I'm sure the answer is quite simple but for whatever reason I cannot sort it out.
Private Sub Adnma_Click()
Dim Ctl As Control
For Each Ctl In Me.Controls
If Ctl.ControlType = acCheckBox Then
If Ctl.Value = True Then
Me![RcrdCmp] = "Y"
Else
Me![RcrdCmp] = ""
End If
End If
Next
End Sub
If I comment out the Else and Me![RcrdCmp] then the RcrdCmp field will set to "Y", however, when I leave the else statement nothing works. What am I missing?
Private Sub Adnma_Click()
Dim Ctl As Control
For Each Ctl In Me.Controls
If Ctl.ControlType = acCheckBox Then
If Ctl.Value = True Then
Me![RcrdCmp] = "Y"
Else
Me![RcrdCmp] = ""
End If
End If
Next
End Sub
If I comment out the Else and Me![RcrdCmp] then the RcrdCmp field will set to "Y", however, when I leave the else statement nothing works. What am I missing?