If Me.命令9.Caption = "stop" Then
Me.命令9.Caption = "命令9"
Dim rst As New ADODB.Recordset
rst.Open "电话号码表", CurrentProject.Connection, adOpenKeyset, adLockReadOnly
Dim I As Integer
Dim x As Integer
Dim o As Integer
For o = 0 To 100
I = rst.RecordCount
'Debug.Print I
x = Int(I * Rnd()) + 1 '使用随机数
'Debug.Print I
rst.AbsolutePosition = x '使用绝对定位
intPhotoNo = rst("电话号码")
Me.文本1.RowSource = "SELECT 电话号码, 用户, 单位, 状态, 装机类型 FROM 电话号码表 where 电话号码 = " & intPhotoNo
文本7 = rst("电话号码")
DoCmd.RepaintObject
If Me.命令9.Caption = "命令9" Then DoEvents
If Me.命令9.Caption = "Stop" Then o = 100
Next