Thenk you for your reply. I have found a more or less way to take an array and found out that excel vba functions dosent work in access.
Is there a functions for access to find max/min elements of array and its length?
For example
    s = Application.Count(a)