CloseWindow宏操作中英文对照
时 间:2012-07-27 09:58:58
作 者:微软 ID:24526 城市:上海
摘 要:可以使用 CloseWindow 操作关闭指定的 Microsoft Access 2010 文档选项卡或活动的文档选项卡(如果未指定文档选项卡)。
正 文:
【中文】CloseWindow 宏操作
可以使用 CloseWindow 操作关闭指定的 Microsoft Access 2010 文档选项卡或活动的文档选项卡(如果未指定文档选项卡)。
设置
CloseWindow 操作具有下列参数。
说明
CloseWindow 操作适用于用户可显式打开或关闭的所有数据库对象。此操作等效于选择某个对象,然后通过右键单击该对象的文档选项卡并单击快捷菜单上的“关闭”来关闭该对象,也等效于单击对象的“关闭”按钮。
如果将“保存”参数设置为“提示”,且在执行 CloseWindow 操作前尚未保存该对象,则会出现一个对话框,提示用户在该宏关闭对象前保存该对象。如果将 SetWarnings 操作的“打开警告”参数设置为“否”,则不会显示该对话框,而会自动保存对象。
若要在 Visual Basic for Applications (VBA) 模块中运行 CloseWindow 操作,请使用 DoCmd 对象的 CloseWindow 方法。
【英文】CloseWindow Macro Action
You can use the CloseWindow action to close either a specified Microsoft Access 2010 document tab or the active document tab if none is specified.
setting
The CloseWindow action has the following arguments.
Remarks
The CloseWindow action works on all database objects that the user can explicitly open or close. This action has the same effect as selecting an object and then closing it by right-clicking the object's document tab and then clicking Close on the shortcut menu, or clicking the Close button for the object.
If the Save argument is set to Prompt and the object hasn't already been saved before the CloseWindow action is carried out, a dialog box prompts the user to save the object before the macro closes it. If you have set the Warnings On argument of the SetWarnings action to No, the dialog box is not displayed and the object is automatically saved.
To run the CloseWindow action in a Visual Basic for Applications (VBA) module, use the CloseWindow method of the DoCmd object.
Access软件网QQ交流群 (群号:483923997) Access源码网店
常见问答:
技术分类:
源码示例
- 【源码QQ群号19834647...(12.17)
- Access两种方式实现即时更...(03.01)
- Access隐藏与显示lacc...(01.12)
- 【Access高效办公】将每个...(12.23)
- Access21点游戏源代码(12.13)
- 【Access窗体导出Exce...(11.15)
- 【Access开发】Acces...(11.14)
- 通过Access宏录入数据到选...(11.10)
- 用DLOOKUP函数将需求表中...(10.31)
- Access日期区间段查询数据...(10.25)
学习心得
最新文章
- Access快速开发平台--在WI...(03.08)
- 使用SQL语句删除xscj表中学号...(03.08)
- Access快速开发平台进销存教程...(03.07)
- Access快速开发平台--frm...(03.06)
- 【Access删除查询】删除数字最...(03.06)
- Access快速开发平台进销存教程...(03.05)
- Access快速开发平台进销存教程...(03.04)
- Access快速开发平台--IsL...(03.02)
- Access两种方式实现即时更新月...(03.01)
- Access开发的资金管理系统;基...(02.29)