Access UBound function

Syntax
UBound (arrayname, [ dimension ])