Foxtable(狐表)用户栏目专家坐堂 → [求助] 保存时间太长


  共有4161人关注过本帖树形打印复制链接

主题:[求助] 保存时间太长

帅哥哟,离线,有人找我吗?
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:110450 积分:562116 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2022/6/26 21:47:00 [显示全部帖子]

            With DataTables ("汇总表")
                .StopRedraw '静止绘制               
                For Each DR In DataTables("流水账").select(“科目表_一级=‘“ &  t1 & ”’”)
                        Dim dr2 As DataRow
                        dr2 = DataTables ("汇总表").AddNew
                        dr2("一级科目") = dr("科目表_一级")
                        dr2("日期") = dr("日期")
                        dr2("摘要") = dr("摘要")
                        dr2("凭证号") = dr("凭证号")
                        dr2("借方") = dr("科目表_借方")
                        dr2("贷方") = dr("科目表_贷方")
                    next
               For Each DR In DataTables("流水账").select(“对方科目_一级=‘“ &  t1 & ”’”)
                        Dim dr2 As DataRow
                        dr2 = DataTables ("汇总表").AddNew
                        dr2("一级科目") = dr("对方科目_一级")
                        dr2("日期") = dr("日期")
                        dr2("摘要") = dr("摘要")
                        dr2("凭证号") = dr("凭证号")
                        dr2("借方") = dr("对方科目_借方")
                        dr2("贷方") = dr("对方科目_贷方")
                Next
                .ResumeRedraw
            End With

如果是SqlServer,另外可以看看:http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&Id=147288

 回到顶部