以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 关联 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=102645) |
-- 作者:邝蛋蛋 -- 发布时间:2017/6/23 12:19:00 -- 关联 求大家指点, [此贴子已经被作者于2017/6/23 12:20:46编辑过]
|
-- 作者:有点蓝 -- 发布时间:2017/6/23 12:25:00 -- 看:http://www.foxtable.com/webhelp/scr/2631.htm |
-- 作者:邝蛋蛋 -- 发布时间:2017/6/23 13:30:00 -- 可以了,谢谢 |
-- 作者:邝蛋蛋 -- 发布时间:2017/6/23 14:24:00 -- 问题又来了,图片那里不是有个查询的按钮吗?我写了代码,然后查询出来的结果是在反应在发货单上,而发货单的副本没有反应,应该怎么办,以下是我写的查询按钮代码 Dim nms() As String = {"ComboBox1","DateTimePicker1","DateTimePicker2"} Dim sps() As String = {"\'","#","#"} Dim bjf() As String = {" = "," >= "," <="} Dim fds() As String = {"加工厂","日期","日期"} Dim filter As String For i As Integer = 0 To nms.Length - 1 If e.Form.Controls(nms(i)).value IsNot Nothing Then If filter > "" Then filter = filter & "And" End If filter = filter & fds(i) & bjf(i) & sps(i) & e.Form. controls(nms(i)).value & sps(i) End If Next Tables("发货单").filter = filter |
-- 作者:有点蓝 -- 发布时间:2017/6/23 15:08:00 -- 副本这样用 e.form.controls("Table1").table.filter = filter 或者 Tables("窗口名称_表控件名称").filter = filter |
-- 作者:邝蛋蛋 -- 发布时间:2017/6/23 17:16:00 -- 是在副本窗口的AfterLoad里设置吗, 我显示这个错误 |
-- 作者:有点蓝 -- 发布时间:2017/6/23 18:09:00 -- 在4楼代码中改 |
-- 作者:邝蛋蛋 -- 发布时间:2017/6/24 13:45:00 -- 不好意思,可以写完整代码给我吗,我改来改去都提示错误。。。 |
-- 作者:有点蓝 -- 发布时间:2017/6/24 14:40:00 -- Dim nms() As String = {"ComboBox1","DateTimePicker1","DateTimePicker2"} Dim sps() As String = {"\'","#","#"} Dim bjf() As String = {" = "," >= "," <="} Dim fds() As String = {"加工厂","日期","日期"} Dim filter As String For i As Integer = 0 To nms.Length - 1 If e.Form.Controls(nms(i)).value IsNot Nothing Then If filter > "" Then filter = filter & "And" End If filter = filter & fds(i) & bjf(i) & sps(i) & e.Form. controls(nms(i)).value & sps(i) End If Next e.form.controls("Table1").table.filter = filter \'红色部分改为自己窗口表控件名称
|
-- 作者:邝蛋蛋 -- 发布时间:2017/6/24 15:41:00 -- got it 、我知道我哪里出错了,不是代码错了,是我按加工厂名字搜索的时候,加工厂的名字没有打完成,所以一直显示错误。如果我要在代码里加上模糊查找的代码,要怎么添加?如何在原来的代码上做出修改 |