Microsoft KB Archive/137120

{|
 * width="100%"|

INF: SetWarnings Action Overrides Save Argument
'Article ID: Q137120

Creation Date: 20-SEP-1995

Revision Date: 01-DEC-1996' The information in this article applies to:


 * Microsoft Access versions 7.0, 97

SUMMARY

Moderate: Requires basic macro, coding, and interoperability skills.

When you set the WarningsOn argument of the SetWarnings action to No in a macro, it bypasses the Save argument of a Close action and forces the object to be saved automatically.

MORE INFORMATION

The Save argument of the Close action has three settings:

  Prompt Prompt the user whether or not to save the object before "closing." Yes Save and close the object without prompting. No Close the object without saving it.

The default setting for the Save argument of the Close action is Prompt. If you set the WarningsOn argument of the SetWarnings action to No, the Save argument on the Close action is overridden. No prompt dialog box is displayed; the object is automatically saved.

REFERENCES

For more information about the SetWarnings action, search the Help Index for "SetWarnings action," or ask the Microsoft Access 97 Office Assistant.

For more information about the Close action, search the Help Index for "Close action," or ask the Microsoft Access 97 Office Assistant.
 * }

-

"THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED 'AS IS' WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY." '' ©1997 Microsoft Corporation. All rights reserved. Legal Notices.

''

KBCategory: kbusage

KBSubcategory: McrArg

Additional reference words: 7.00 97 8.00