标题:Do While Not mrc.EOF出错了,,怎么修改
取消只看楼主
cxcy0520
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2008-11-20
 问题点数:0 回复次数:0 
Do While Not mrc.EOF出错了,,怎么修改
Set mrc = ExecuteSQL(txtSQL, MsgText)
        With msgList
        .Rows = 1
        
        Do While Not mrc.EOF
            .Rows = .Rows + 1
            For i = 1 To mrc.Fields.Count
                If Not IsNull(Trim(mrc.Fields(i - 1))) Then
                Select Case mrc.Fields(i - 1).Type
                    Case adDBDate
                        .TextMatrix(.Rows - 1, i) = Format(mrc.Fields(i - 1) & "", "yyyy-mm-dd")
                    Case Else
                        .TextMatrix(.Rows - 1, i) = mrc.Fields(i - 1) & ""
                End Select
                End If
            Next i
            mrc.MoveNext
        Loop
搜索更多相关主题的帖子: mrc EOF While Not 
2008-11-20 22:26



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-245470-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.887038 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved