表A有4个网页链接,不同行链接数量不同,我想在窗体中的4个按钮分别链接,当前行相应链接为空时按钮不显示,窗口的ValueChanged事件如下,并且执行通过,但当按表A的某列排序时出现如图所示窗口(表A在窗口控件中绑定),如何解决?
If Tables("表A").current("百度") = Nothing Then
e.Form.Controls("Button1").Visible = False
Else
e.Form.Controls("Button1").Visible = True
End If
If Tables("表A").current("雅虎") = Nothing Then
e.Form.Controls("Button2").Visible = False
Else
e.Form.Controls("Button2").Visible = True
End If
If Tables("表A").current("新浪") = Nothing Then
e.Form.Controls("Button3").Visible = False
Else
e.Form.Controls("Button3").Visible = True
End If
If Tables("表A").current("腾讯") = Nothing Then
e.Form.Controls("Button4").Visible = False
Else
e.Form.Controls("Button4").Visible = True
End If

此主题相关图片如下:fox.png
[此贴子已经被作者于2012-2-10 11:12:25编辑过]