Error 486 - BYVAL option not allowed

BYVAL option not allowed - Use of the BYVAL option in this context is not allowed.  This error is most frequently generated by an attempt to pass an array as a BYVAL parameter.  Generally speaking, you should change this to BYREF instead.