Error strings in Microsoft Script Libraries

Error #
Error String

401 An ADO recordset has not been defined. Check recordset DTC properties.

402 Argument [nAlignment] is undefined.

403 Argument [value] is undefined.

404 Attempt to access fields when recordset is at BOF or EOF.

405 Calling addImmediate is not allowed during the onbeforeupdate event.

406 Calling addRecord is not allowed during the onbeforeupdate event.

407 Calling updateRecord is not allowed during the onbeforeupdate event.

408 Cannot add a new record to a closed recordset.

409 Cannot add a new record to a read-only recordset.

410 Cannot cancel update of a closed or empty recordset.

411 Cannot cancel update of a read-only recordset.

412 Cannot delete a record from a closed or empty recordset.

413 Cannot delete a record from a read-only recordset.

414 Cannot move a closed or empty recordset.

415 Cannot requery a closed recordset.

416 Cannot update a closed or empty recordset.

417 Cannot update a read-only recordset.

418 Failed to [action] the ADO recordset. Check for the following possible causes:

  • An invalid SQL statement.
  • Missing or invalid database object name (check recordset DTC properties).
  • Missing parameters or parameter type mismatch (parameters must be set before [action]).

CommandType = [CommandType]
CommandText = [CommandText]

419 Invalid argument [bookmark = [bookmark]]. Use getBookmark() to retrieve a valid bookmark.

420 Invalid argument [nColumnCount = [nColumnCount]]. Must provide a number greater than zero.

421 Invalid argument [nIndex = [nIndex]]. Must be a number.

422 Invalid argument [nMaxLength = [nMaxLength]]. Must provide a number greater than zero.

423 Invalid argument [nRowCount = [nRowCount]]. Must provide a number greater than zero.

424 Invalid argument [nStyle = [nStyle]]. Must provide a valid textbox style.

425 Invalid argument [objDataSource]. Must provide a valid object or null.

426 Invalid argument [objRecordset]. Must provide a valid object or null.

427 Invalid argument [strConn]. Must provide either an ADO recordset object OR a connection string and SQL string.

428 Invalid argument [strName]. Must provide a valid string.

429 Invalid argument [strValue = [strValue]]. Must provide string of either "text" or "html".

430 Invalid argument [value]. Cannot pass an object as a parameter value. Provide a scalar value or a scalar property of the object instead.

431 Invalid argument or argument out of bounds. [nIndex = [nIndex]]

432 Invalid argument. [field] must be a number or string.

433 Invalid argument. [field] must be a number or string. [value] must match datatype of field.

434 Recordset is already closed.

435 Recordset is already open.

436 Recordset is already open. A requery is required to execute the new SQL statement.

437 This version of ADO does not support the ActiveCommand property. Must have ADO 2.0 or greater installed.

438 Unable to find record associated with argument [bookmark = [bookmark]].

439 Unable to set the IRowsetScroll property on the ADO recordset.
Make sure the database supports a server-side cursor OR use a client-side cursor.

440 Wrong argument type [nIndex = [nIndex]]. Expect a number.

441 Wrong argument type [strCaption]. Expect a string.

442 Wrong argument type [strSQL]. Expect a string.

443 Wrong argument type [strText]. Expect a string.