ADO InfoMessage Event

## ADO Tutorial

ADO HOME ADO Intro ADO Connect ADO Recordset ADO Display ADO Query ADO Sort ADO Add ADO Update ADO Delete ADO Demo ADO Speed Up

## ADO Objects

ADO Command ADO Connection ADO Error ADO Field ADO Parameter ADO Property ADO Record ADO Recordset ADO Stream ADO DataTypes
ADO Summary

## ADO Examples

ADO Examples

# ADO InfoMessage Event

Complete Connection Object Reference

An event is a subroutine that can be called automatically after a specific operation has occurred.

The InfoMessage event can be fired if a warning occurs in a connection operation.

### Syntax

InfoMessage objerror,status,objconn

Parameter | Description
--- | ---
objerror | An Error object that contains the errors that are returned
status | An EventStatusEnum value. If a warning occurs, status is set to adStatusOK and the objerror contains the warning
objconn | A Connection object. The connection for which the warning occurred

### EventStatusEnum Values

Constant | Value | Description
--- | --- | ---
adStatusOK | 1 | The operation that fired the event was successful
adStatusErrorsOccurred | 2 | The operation that fired the event failed
adStatusCantDeny | 3 | Cannot cancel the pending operation
adStatusCancel | 4 | Cancels the operation that fired the event
adStatusUnwantedEvent | 5 | Prevents subsequent notifications before the event method has finished executing

Complete Connection Object Reference

## Your suggestion:

Your E-mail (optional):

Page address:

Description:

Close [X]

## Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

## WEB HOSTING

Best Web Hosting UK Reseller Hosting Wow! $5 SSD Hosting

## WEB BUILDING

Download XML Editor
FREE Website BUILDER FREE Website Creator

## WEB RESOURCES

Web Statistics Web Validation

## SHARE THIS PAGE