Foxtable(狐表)用户栏目专家坐堂 → 日期代码错误,求帮助


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

主题:日期代码错误,求帮助

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


加好友 发短信
等级:狐神 帖子:6708 积分:34304 威望:0 精华:11 注册:2012/8/18 23:10:00
  发帖心情 Post By:2013/1/14 10:17:00 [显示全部帖子]

 个人感觉这样比较好

Dim a1 As WinForm.TextBox = e.Form.Controls("TextBox1")
Dim a2 As WinForm.TextBox = e.Form.Controls("TextBox2")
Dim a3 As WinForm.TextBox = e.Form.Controls("TextBox3")

Dim d1 As Date = New Date(a1.Text, a2.Text, a3.Text, 8, 39, 0)
Dim d2 As Date = New Date(Date.Today.Year, Date.Today.Month, Date.Today.Day, 8, 40, 13)

Tables("统计查询_table1").filter="[增加完成数量的时间]>=#" & d & "# And [增加完成数量的时间]<=#" & d2 & "#"
Forms("统计查询输入查询日期").close


 回到顶部