以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  用currentchanged关联  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=144234)

--  作者:ZHB790613
--  发布时间:2019/12/14 15:58:00
--  用currentchanged关联

If Forms("单据查询").opened=True
    If Tables("订单明细表").current IsNot Nothing Then
        DataTables("出库明细表").LoadFilter="产品编码 =\'" & Tables("订单明细表").current("产品编码") &"\'"
        DataTables("出库明细表").Load
            
    End If
   
End If

 

 

问题求教:上面代码是单条件关联,双条件关联代码如何处理(“产品编码”、“客户单号”),刚刚接触Foxtalbe,

 

 

 


--  作者:有点蓝
--  发布时间:2019/12/14 16:04:00
--  
DataTables("出库明细表").LoadFilter="产品编码 =\'" & Tables("订单明细表").current("产品编码") & "\' and 客户单号=\'" & Tables("订单明细表").current("客户单号") & "\'"
--  作者:ZHB790613
--  发布时间:2019/12/15 22:57:00
--  

谢谢,非常感谢,