以文本方式查看主题

-  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=68041)

--  作者:sara
--  发布时间:2015/5/8 13:28:00
--  关于未将对象引用设置到对象实例

drTemp = Tables("订单表").Current.DataRow

没有数据时候这句就会有问题,关于未将对象引用设置到对象实例,那我该如何避免呢


--  作者:Bin
--  发布时间:2015/5/8 13:37:00
--  
if Tables("订单表").Current isnot nothing then
 drTemp = Tables("订单表").Current.DataRow
 \'其它用到drTemp的代码
end if