ADODB.Command error '800a0d5d'

The application is using a value of the wrong type for the current operation.

/global_functions.asp, line 42