For Each ctl In Me.Controls
Select Case ctl.ControlType
Case acTextBox
If Not Left(Me.Controls(ctl.Name).Value, 1) = " " Then
If Left(ctl.Name, 7) = "SafeHaz" Then
For i = i To 9
If CInt(Left(Right(Trim(ctl.Value), 6), 2)) = i Then
Me.Controls("chk_hzd_0" & i) = -1
End If
Next
i = 1
End If
End If
End Select
Next