Private Sub Form_Load()
Dim LngCount As Long
Dim Rs As New ADODB.Recordset
Rs.Open "SELECT * FROM 日程", CurrentProject.Connection, adOpenKeyset, adLockOptimistic
Rs.MoveFirst
LngCount = Rs.RecordCount
ReDim StrMsg(LngCount) As String
Do While Not Rs.EOF
StrMsg(I) = Rs.Fields("内容")
I = I + 1
Rs.MoveNext
Loop
For I = 0 To LngCount - 1
Debug.Print StrMsg(I)
Next I