matrixindicator
IS-IT--Management
Hello, dummy question,
I use a recordset to fill an array = ok it works.
However he asked to set the dimension of the array "FJa(72)"
I suppose this is the number of elements I expect to put in.
I have 72 records, but this is variable. Can you set the dimension variable ?
I use a recordset to fill an array = ok it works.
However he asked to set the dimension of the array "FJa(72)"
I suppose this is the number of elements I expect to put in.
I have 72 records, but this is variable. Can you set the dimension variable ?
Code:
Dim FJa(72) As String
Dim i As Integer
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("TABLE", dbOpenDynaset)
i = 1
Do Until rst.EOF
FJa(i) = rst!FIELD
i = i + 1
rst.MoveNext
Loop
i = Empty
i = 1