Argument '<argument1>' must be less than or equal to the length of argument '<argument2>'

An argument's length exceeds the allowable limit, which is determined by the second argument's length.

To correct this error

  1. Ensure that the length of the argument's value falls within the valid range.

  2. If the argument is supplied by a calculation, check the values the calculation processes.

See Also

Concepts

Passing Arguments by Value and by Reference

Parameter Passing Mechanism for Visual Basic 6.0 Users