' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Function table2array()
  Dim F1(10) As Integer
  Dim F2(10) As Integer
  Dim ix As Integer
  Dim rs As DAO.Recordset
  Set rs = CurrentDb.OpenRecordset("SELECT * FROM T1")
  ix = 0
  While Not rs.EOF
    F1(ix) = rs!F1
    F2(ix) = rs!F2
    ix = ix + 1
    rs.MoveNext
  Wend
End Function
