Office中国论坛/Access中国论坛
标题:
用代码获取选定列的名称
[打印本页]
作者:
ajun68
时间:
2004-11-28 19:35
标题:
用代码获取选定列的名称
[attach]7871[/attach]
请教怎样用代码获取选定列的名称?
作者:
Trynew
时间:
2004-11-28 19:45
Me.ActiveControl.Name 如数据表窗体加下面程序可以点击列表头进行排序:Private Sub Form_Click()
On Error Resume Next
If Me.SelWidth > 1 Then Exit Sub
If Me.OrderBy = Me.ActiveControl.Name Then
Me.OrderBy = Me.ActiveControl.Name & " DESC"
Else
Me.OrderBy = Me.ActiveControl.Name
End If
Me.OrderByOn = True
End Sub
作者:
竹笛
时间:
2004-11-28 20:57
It was wonderful.
作者:
ajun68
时间:
2004-11-29 04:09
多谢了!
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/)
Powered by Discuz! X3.3