Private Sub List3_DblClick(Cancel As Integer)
Dim strInfo As String
Dim I As Long
For I = 0 To List3.ListCount - 1
If List3.Selected(I) Then
strInfo = List3.Column(0) & "//" & List3.Column(1)
DoCmd.OpenForm "收费数据窗体", acNormal, , , acFormAdd, , strInfo
Exit Sub
End If
Next
End Sub
原来这句是:For I = 1 To List3.ListCount
改为:For I = 0 To List3.ListCount - 1