Repository.Message

Occurs when an error is produced. Displays an error message.

Syntax
_Message(msg)

Parameters
msg
 * Required. String. The message to display when an error occurs.

Example
The following example provides a simple demonstration on how to customize the event procedure.

VBA MyRepository Repository Main MyRepository = Repository MyRepository.UseEvents = True MyRepository.ConnectToAccessRepository NewAction cAction NewAction.ActionDescription = MyRepository.Action.AddAction(NewAction) Msgbox MyRepository_Message( msg ) MsgBox (msg)

VB.NET MyRepository Repository Main MyRepository = Repository MyRepository.UseEvents = True MyRepository.ConnectToAccessRepository NewAction cAction NewAction.ActionDescription = MyRepository.Action.AddAction(NewAction) Msgbox MyRepository_Message(msg ) MyRepository.Message MsgBox (msg)