The information in this article applies to:
SUMMARY
If you try to open a Microsoft Access library without first opening a
database, the following error message is displayed:
This article discusses a technique for handling this situation using error trapping in Access Basic. This article assumes that you are familiar with Access Basic and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information on Access Basic, please refer to the "Introduction to Programming" manual. MORE INFORMATION
You can have a function in your Library determine whether a database is
open by trapping for an error. For example, if a function in the library
tries to open a form without a database first being opened, error number
2046 will be returned with the error message "Command Not Available:
OpenForm."
REFERENCES
Microsoft Access "Introduction to Programming," version 1.0, Chapter 6,
"Handling Run-Time Errors," pages 69-78
Keywords : kberrmsg kbprg MdlLib PgmErr |
Last Reviewed: April 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |