AG广东会,山东十一选五,大发

?
  • AG广东会400电话
  • 微网小程序
  • AI电话山东十一选五
  • 电商代运营
  • AG广东会,山东十一选五,大发:全 部 栏 目

    AG广东会400电话 网络优化推广 AI电话山东十一选五 呼叫中心 网站建设 商标?知产 微网小程序 电商运营 彩铃?短信 增值拓展业务
    记录集内随机取记录的代码
    %
    ' Moving to random record - Steven Jones' Extension
    If Not(记录集名称.bof and 记录集名称.eof) Then
    ' reset the cursor to the beginning
    If (记录集名称.CursorType > 0) Then
    记录集名称.MoveFirst
    Else
    记录集名称.Requery
    End If

    记录集名称_totalrn = -1
    记录集名称_totalrn = 记录集名称.RecordCount ' ony works on some recordsets, but much faster
    If (记录集名称_totalrn = -1) Then ' and if it didn't work, we still have to count the records.

    ' count the total records by iterating through the recordset
    记录集名称_totalrn=0
    While (Not 记录集名称.EOF)
    记录集名称_totalrn = 记录集名称_totalrn + 1
    记录集名称.MoveNext
    Wend

    ' reset the cursor to the beginning
    If (记录集名称.CursorType > 0) Then
    记录集名称.MoveFirst
    Else
    记录集名称.Requery
    End If

    End If

    ' now do final adjustments, and move to the random record
    记录集名称_totalrn = 记录集名称_totalrn - 1
    If 记录集名称_totalrn > 0 Then
    Randomize
    记录集名称.Move Int((记录集名称_totalrn + 1) * Rnd)
    End If
    End If
    ' all done; you should always check for an empty recordset before displaying data
    %>
    上一篇:万能数据库连接程序
    下一篇:分页代码
  • 相关文章
  • ?

    ? 2016-2020 巨人网络通讯 版权所有

    《增值电信业务经营许可证》 苏ICP备15040257号-8

    记录集内随机取记录的代码 记录,集内,随机,取,的,代码,

    AG广东会官网入口(中国)官方网站-IOS/Android通用版(2026已更新)