|
Private Sub Form_Load()
Call ButtonEffectInit(Me)
End Sub
Private Function ButtonEffectInit(Formolll As Form)
Dim ctl As Control
For Each ctl In Formolll.Controls
If ctl.ControlType = acCheckBox Then
If Left(ctl.Name, 3) = "qxz" Then
ctl.OnMouseMove = "= zxzhiduanppp([form], [" & ctl.Name & "])"
End If
End If
Next
End Function
Private Function zxzhiduanppp(cc As Form, cd As Control)
If Nz(cc.Parent.qx2) <> cc(cd.Name & "_Label").Caption Then
cc.Parent!List5.Requery
cc.Parent.qx2 = cc(cd.Name & "_Label").Caption
End If
End Function |
|