How do you pass a dynamic array into a subroutine? I have filled an array:

Dim arAssetIDs() as Integer
.
.
ReDim arAssetIDs(1 to intAssetCount)




and then tried to call a sub:

Call subAssetTransfer(cmbSourceOwner, cmbTargetOwner, arAssetIDs())




which goes to:

public Sub subAssetTransfer(intSourceBEMS as Integer, _
intTargetBEMS as Integer, paramarray arAssets())




and all I get is an overflow error when it tries to execute the call statement.