Dim db As Database
Dim rs As Recordset
Dim selSQL As String
Dim myArray() As Variant
Dim recCount As Integer, i As Integer
Set db = CurrentDb()
'enter the sql to generate what's going into the array
'adjust to suit
selSQL = "SELECT [myTable].* FROM [myTable];"
Set rs = db.OpenRecordset(selSQL)
rs.MoveLast
recCount = rs.RecordCount
'size the array
ReDim myArray(1 To recCount)
rs.MoveFirst
'stack the array, adjust myField to suit
For i = 1 To recCount
myArray(i) = rs!myField
rs.MoveNext
Next i