The information in this article applies to:
SUMMARY
Moderate: Requires basic macro, coding, and interoperability skills.
MORE INFORMATION
When you use the Setup Wizard to create a run-time redistribution of your
custom application, the application is not compiled into a single
executable file. Instead, all of the files that Microsoft Access needs to
run your database are included with your setup, and the Setup program
creates a run-time version of your application by setting certain Windows
Registry keys.
Database WindowsThe Database, Macro, and Module windows are not visible in a run-time application. Filter By Form, Filter By Selection and Advanced Filter windows are also hidden. The windows exist, but the run-time environment hides them. This means your application must be form based; users interact with the forms you create and not with the underlying tables and queries, which they cannot see.Most run-time applications contain a main switchboard form, or menu, that you set as the Startup form in your database. The switchboard form is the central point in your application from which users open other forms, run reports, and make changes to data. Because the Database window is invisible in run-time, when users start your application they only see a blank screen with a menu at the top if you do not include a Startup form. ViewsThe Microsoft Access run-time environment hides the Design views of Tables, Queries, Forms, and Reports. If your application contains any buttons or toolbars that switch an object to Design view, they will not work in a run-time environment.This feature adds a measure of protection to your application design, and prevents users from viewing or modifying your objects. MenusThe run-time environment removes several menus and commands from the menu bar in Microsoft Access. For example, the View, Tools, and Format menus are completely removed, and certain items are removed from the Edit, Insert, and Records menus. This prevents users from making changes to your application design.In most cases, you create custom menus for each of your forms that control what menus and commands are available to users of your application. Even though certain menus and commands are removed from the menu bar, you can still use the RunCommand method in your application to run commands that are on the hidden menus. ToolbarsAll of the built-in toolbars in Microsoft Access are disabled in a run-time environment. You must create your own custom toolbars for your application if you want to include them.The run-time environment does not show and hide your custom toolbars as the context changes, so you must manipulate the toolbars in your application using the ShowToolbar method in the OnActivate and OnDeactivate properties of your forms and reports. Unavailable KeysCertain keys and key combinations are unavailable in the run-time environment to prevent users from disrupting your application. The following table summarizes keys that are unavailable:
Error HandlingError handling is critical in a run-time application. In a retail version of Microsoft Access, an unhandled error prompts you with an error message and in many cases enables you to view or reset the code that caused the error. In run-time Microsoft Access, an unhandled error shuts down your application.Error handling can only be accomplished with Visual Basic for Applications code; macros do not provide error handling. Therefore, limit the use of macros in your run-time applications. HelpIf you want to provide Help for your run-time application, you must create your own Help file, and then set the AppHelpFile key in the Windows Registry. Microsoft Office 97 Developer Edition includes a Help Workshop to assist you in creating custom Help files, and the Setup Wizard to assist you in setting the AppHelpFile registry key when you create your Setup files.Note that the ODE end-user license agreement does not permit you to distribute the Office Assistant as part of your Help system. If code in your application invokes any methods or properties of the Office Assistant, it will generate an error in a run-time environment. REFERENCESFor more information about the topics presented in this article, search the Help Index for "run-time environment, differences between Microsoft Access and." Additional query words: ODE ADT RT stand alone full
Keywords : kbui UifDbwin UifKeybd UifMenub |
Last Reviewed: April 14, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |