Visual Basic: RDO Data Control

Incorrect type for parameter (Error 40040)

See Also

A Variant with an invalid type was detected. This can be caused by passing a value to an RDO method or property that cannot be coerced to the correct type, such as trying to pass a string data type as a numeric value.

To avoid this problem, make sure the value passed is the correct type for the operation. For column values, you can check the column's Type property to ensure you are passing the correct type.