标题:实时错误3251 当前记录集不支持书签
只看楼主
yue1115
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2006-12-22
 问题点数:0 回复次数:0 
实时错误3251 当前记录集不支持书签
实时错误3251  当前记录集不支持书签。??这是为什么

Option Explicit
Dim mrc As ADODB.Recordset
Dim myBookmark As Variant
Dim mcclean As Boolean


Private Sub cancelCommand_Click()
 Unload Me
End Sub



Private Sub deleteCommand_Click()
  myBookmark = mrc.Bookmark
   
    If MsgBox("是否删除当前记录?", vbOKCancel, "删除当前记录") = vbOK Then
            mrc.MoveNext
            If mrc.EOF Then
                mrc.MoveFirst
                myBookmark = mrc.Bookmark
                mrc.MoveLast
                mrc.Delete
                mrc.Bookmark = myBookmark
                Call viewData
            Else
                myBookmark = mrc.Bookmark
               mrc.MovePrevious
                mrc.Delete
                mrc.Bookmark = myBookmark
                Call viewData
            End If
    Else
        mrc.Bookmark = myBookmark
        Call viewData
    End If
End Sub
搜索更多相关主题的帖子: 实时 书签 记录 
2008-11-01 16:21



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




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

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