Argument '<argumentname>' must be greater than or equal to zero

An argument is not valid because it is less than zero.

To correct this error

  1. Check the spelling of arguments. A misspelled variable name can implicitly create a numeric variable that is initialized to zero.

  2. Check previous operations on variables in the expression, especially those passed into the procedure as arguments from other procedures.

See Also

Concepts

Passing Arguments by Value and by Reference

Parameter Passing Mechanism for Visual Basic 6.0 Users