Information about the DSCEventInfo object properties that are supported by each data source control event in Access 2002 (295110)



The information in this article applies to:

  • Microsoft Access 2002

This article was previously published under Q295110
Advanced: Requires expert coding, interoperability, and multiuser skills.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).

INTRODUCTION

The DSCEventInfo object contains several properties that you can use in specific DataSourceControl events. However, you cannot use all the properties of the DSCEventInfo object from every event of the DataSourceControl. If you try to access a property of the DSCEventInfo object in an event where it is not supported, you may receive a run-time error or unexpected results.

MORE INFORMATION

The following tables provide a guide for determining which DSCEventInfo object property can be used in which data source control event. If you experience a problem with one of the DSCEventInfo object properties while you are developing a data access page, review these tables and verify that the data source control event supports the DSCEventInfo object property that you are trying to use.

Because of the large number of events and the large number of properties, this information is provided in two tables. The first table lists the ReturnValue property, the DisplayAlert property, the Status property, and the DataPage property of the DSCEventInfo object. The second table lists the Section property, the PercentComplete property, and the Error property of the DSCEventInfo object. Because of a known issue with the Connection property of the DSCEventInfo object, neither table lists this property.

For additional information about the Connection property of the DSCEventInfo object, click the following article number to view the article in the Microsoft Knowledge Base:

295060 Connection property of the DSCEventInfo object does not work

Table 1 - DSCEventInfo properties that are supported by event

EventReturnValueDisplayAlertStatusDataPage
AfterDelete X X
AfterInsert X
AfterUpdate X
BeforeCollapse X
BeforeDelete X X X
BeforeExpand X
BeforeFirstPage X X
BeforeInitialBind
BeforeInsert X X
BeforeLastPage X X
BeforeNextPage X X
BeforeOverwrite X X
BeforePreviousPage X X
BeforeUpdate X X
Current X
DataError
DataPageComplete X
Dirty X X
Focus X
RecordExit X X
RecordsetSaveProgress X
Undo X X

Table 2 - DSCEventInfo properties that are supported by event (continued)

EventSectionPercentCompleteError
AfterDelete X X
AfterInsert X
AfterUpdate X
BeforeCollapse X
BeforeDelete X X
BeforeExpand X
BeforeFirstPage
BeforeInitialBind
BeforeInsert X X
BeforeLastPage
BeforeNextPage
BeforeOverwrite
BeforePreviousPage
BeforeUpdate X X
Current X X
DataError X
DataPageComplete
Dirty X X
Focus X
RecordExit X X
RecordsetSaveProgress X
Undo X X

REFERENCES

For more information about the DSCEventInfo object and its properties, click Microsoft Script Editor Help on the Help menu, type DSCEventInfo in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

For more information about the data source control and its events, click Microsoft Script Editor Help on the Help menu, type DataSourceControl in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

Modification Type:MinorLast Reviewed:11/30/2004
Keywords:kbinfo DAPScriptHowTo kbDAPScript kbdta kbhowto KB295110