ACC97: Example Using Animation ActiveX Control in MS Access 97Last reviewed: August 29, 1997Article ID: Q163440 |
The information in this article applies to:
SUMMARYModerate: Requires basic macro, coding, and interoperability skills. This article shows two different examples of using the Animation Control in a Microsoft Access 97 database. The Animation ActiveX Control ships with Microsoft Office 97 Developer Edition Tools. This article assumes that you are familiar with Visual Basic for Applications and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to the "Building Applications with Microsoft Access 97" manual.
MORE INFORMATIONThe Animation ActiveX Control enables you to play .avi files on a Microsoft Access 97 form. When you open the form in Design view, you can see the control; in Form view, however, the control is hidden until you play the .avi file associated with the control. One common use for the Animation control is to provide animation with command buttons. If you place the animation control on top of a command button and use the Click event of the button to invoke the Open and Play methods of the animation control, the button appears to be animated. The Animation ActiveX Control supports only two types of .avi files: uncompressed .avi files, and .avi files that have been compressed using Run-Length Encoding (RLE). In addition, the .avi file cannot contain any audio components. If you use an unsupported file format with the animation control, you receive the error message "Unable to Open AVI File." For more information about this error message, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q162978 TITLE : ACC97: "Unable to Open AVI File" Error Using Animation Control Example 1: Using the Animation Control to Animate a Command Button
Example 2: Selecting and Playing an Animation File
REFERENCESFor more information about the Animation ActiveX Control, search the Help Index for "Animation control." For more information about Common Dialog ActiveX Control, search the Help Index for "CommonDialog control."
|
Additional query words: OLE custom
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |