以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  foR NEXT 不起作用  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=55962)

--  作者:wuxianzuoji41
--  发布时间:2014/8/27 0:11:00
--  foR NEXT 不起作用
For Each dr1 As Row In Tables("窗口客户_tbl_kehu").Rows
msgbox(Tables("窗口客户_tbl_kehu").Current("customer_name"))
next

我在当前窗口(窗口A),想运行另外一个窗体(窗口客户)的FOR NEXT这么写错在哪里

--  作者:land089
--  发布时间:2014/8/27 5:23:00
--  
不要用for next 直接msgbox(Tables("窗口客户_tbl_kehu").Current("customer_name"))
你那样使用的话Tables("窗口客户_tbl_kehu")有多少行就会弹出多少个对话框,代码可以直接放在按钮或其他触发运行窗口的控件里

--  作者:Bin
--  发布时间:2014/8/27 8:35:00
--  
你现在出现的问题是什么?
--  作者:有点甜
--  发布时间:2014/8/27 9:05:00
--  
For Each dr1 As Row In Tables("窗口客户_tbl_kehu").Rows
    msgbox(dr1("customer_name"))
Next