Foxtable(狐表)用户栏目专家坐堂 → 请问可否在代码中加入排序升序


  共有10238人关注过本帖树形打印复制链接

主题:请问可否在代码中加入排序升序

帅哥哟,离线,有人找我吗?
tungwun
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:一尾狐 帖子:423 积分:4243 威望:0 精华:0 注册:2009/5/16 21:42:00
请问可否在代码中加入排序升序  发帖心情 Post By:2012/2/11 22:26:00 [只看该作者]

Dim Filter As String
With
e.Form.Controls("cmbProduct")
If
.Value IsNot Nothing Then
Filter =
"产品 = '" & .Value & "'"
End If
End
With
With
e.Form.Controls("cmbCustomer")
If
.Value IsNot Nothing Then
If
Filter > "" Then
Filter = Filter &
" And "
End If
Filter = Filter &
"客户 = '" & .Value & "'"
End If
End
With
With
e.Form.Controls("cmbEmployee")
If
.Value IsNot Nothing Then
If
Filter >"" Then
Filter = Filter &
" And "
End If
Filter = Filter &
"雇员 = '" & .Value & "'"
End If
End
With
With
e.Form.Controls("StartDate")
If
.Value IsNot Nothing Then
If
Filter >"" Then
Filter = Filter &
" And "
End If
Filter = Filter &
"日期 >= #" & .Value & "#"
End If
End
With
With
e.Form.Controls("EndDate")
If
.Value IsNot Nothing Then
If
Filter >"" Then
Filter = Filter &
" And "
End If
Filter = Filter &
"日期 <= #" & .Value & "#"
End If
End
With
If
Filter > "" Then
Tables
("订单").Filter = Filter
End
If

 回到顶部
帅哥哟,离线,有人找我吗?
狐狸爸爸
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47497 积分:251403 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2012/2/12 9:32:00 [只看该作者]


 回到顶部