If Forms("刷单").Opened Then Dim ed As WinForm.Button = Forms("刷单").Controls("编辑") Dim sh As WinForm.Button = Forms("刷单").Controls("收款") Dim fs As WinForm.Button = Forms("刷单").Controls("反收款") Dim hz As WinForm.Button = Forms("刷单").Controls("收菜") Dim fh As WinForm.Button = Forms("刷单").Controls("反收菜") If e.Table.Current IsNot Nothing Then If e.Table.Current("收款")= False Then ed.Enabled= True sh.Enabled= True fs.Enabled= False hz.Enabled= False fh.Enabled= False Else If e.Table.Current("收菜")= False Then ed.Enabled= False sh.Enabled= False fs.Enabled= True hz.Enabled= True fh.Enabled= False Else ed.Enabled= False sh.enabled= False fs.Enabled= False hz.Enabled= False fh.Enabled= True End If End If End If End If
|