D
deb
access 2003
Getting type mismatch on a select case - Case "ST" And Nz([ckGEN] = -1)
doesn't like Nz([ckGEN] = -1) which is a check box on form
Select Case txtUnitType.Value
Case "CT"
Me.f018ContrPerfEmissGuaDetails.Form.optHPorIPorLP.Visible = False
Me.f018ContrPerfEmissGuaDetails.Form.FrameElem_Label.Visible = False
Case "ST" And Nz([ckGEN] = -1)
Me.f018ContrPerfEmissGuaDetails.Form.optHPorIPorLP.Visible = False
Me.f018ContrPerfEmissGuaDetails.Form.optHPorIPorLP.Value = Null
end select
Getting type mismatch on a select case - Case "ST" And Nz([ckGEN] = -1)
doesn't like Nz([ckGEN] = -1) which is a check box on form
Select Case txtUnitType.Value
Case "CT"
Me.f018ContrPerfEmissGuaDetails.Form.optHPorIPorLP.Visible = False
Me.f018ContrPerfEmissGuaDetails.Form.FrameElem_Label.Visible = False
Case "ST" And Nz([ckGEN] = -1)
Me.f018ContrPerfEmissGuaDetails.Form.optHPorIPorLP.Visible = False
Me.f018ContrPerfEmissGuaDetails.Form.optHPorIPorLP.Value = Null
end select