以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  关于加载数据问题  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=61311)

--  作者:信达
--  发布时间:2014/12/10 17:37:00
--  关于加载数据问题

老师,有个加载数据的问题想请教下:

 

两个数据表A,B是关联列(订单编号)

希望只加载B表中数量列为0,A表的数据

 

是在A表的AfterLoad中写代码吗?怎么写?


--  作者:有点甜
--  发布时间:2014/12/10 18:19:00
--  

DataTables("表A").LoadFilter = "订单编号 in (\'" & DataTables("表B").GetComboListString("订单编号","数量=0").Replace(",", "\',\'") & "\')"
DataTables("表A").Load