If Forms("form").Opened Then Select Case Tables("表A").current("状态") Case "草拟" Forms("form").Controls("Button1").Enabled = False Forms("form").Controls("Button2").Enabled = True Forms("form").Controls("Button3").Enabled = True Case "已通过" Forms("form").Controls("Button1").Enabled = True Forms("form").Controls("Button2").Enabled = False Forms("form").Controls("Button3").Enabled = True Case "已打印" Forms("form").Controls("Button1").Enabled = True Forms("form").Controls("Button2").Enabled = True Forms("form").Controls("Button3").Enabled = True End Select End If
|