Foxtable(狐表)用户栏目专家坐堂 → [求助]时段筛选


  共有4881人关注过本帖平板打印复制链接

主题:[求助]时段筛选

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


加好友 发短信
等级:幼狐 帖子:142 积分:1365 威望:0 精华:0 注册:2011/11/7 15:18:00
[求助]时段筛选  发帖心情 Post By:2013/6/18 16:19:00 [只看该作者]

请问以下代码错误在哪里?
Dim tb As WinForm.Table = e.Form.Controls("Table1")
Dim dtp1 As WinForm.DateTimePicker = e.Form.Controls("DateTimePicker1")
Dim dtp2 As WinForm.DateTimePicker = e.Form.Controls("DateTimePicker2")
Dim drpb_name As WinForm.DropDownBox = e.Form.Controls("DropBox_name")
Dim drpb_bh As WinForm.DropDownBox = e.Form.Controls("DropBox_bh")
Dim rb_all As WinForm.RadioButton = e.Form.Controls("RadioButton_all")
Dim rb_wh As WinForm.RadioButton = e.Form.Controls("RadioButton_wh")
Dim rb_yh As WinForm.RadioButton = e.Form.Controls("RadioButton_yh")
If rb_all.Checked = True Then
    If dtp1.Value IsNot Nothing And drpb_name.Text Is Nothing And drpb_bh.Text Is Nothing Then
        Dim fiter As String = ("借出日期 >= #" & dtp1.value & "# And 借出日期 <= #" & dtp2.value & "# Or 归还日期 >= #" & dtp1.value & "# And 归还日期 <= #" & dtp2.value & "#")
        tb.Table.Filter = fiter
    End If
End If

 回到顶部
总数 13 1 2 下一页