如何不保存表单或报告 [英] How NOT to save a form or report

查看:75
本文介绍了如何不保存表单或报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下例程打开表单或报表,检查是否有OnLoad事件,如果没有我添加它。


Experimentall我输入

展开 | 选择 | Wrap | 行号

解决方案

你好菲尔。


Form_Unload()事件过程根据您的特殊结束代码是否已关闭它来设置取消参数。在您的特殊结束代码中(可能在关闭按钮后面)确保您使用类似以下代码关闭表单或报告:

展开 | 选择 | Wrap | 行号

你好Neopa


感谢您的回复,但仍然没有骰子。


这是完整的代码。

展开 | 选择 | Wrap | 行号


没有进一步的想法Phil,但是你我想重读我在之前的帖子中所说的内容。 LMK如果需要进一步说明。


I use the following routine to open a form or report, check if there is an OnLoad event, if not I add it.

Experimentall I type

Expand|Select|Wrap|Line Numbers

解决方案

Hi Phil.

In the Form_Unload() event procedure have it set the Cancel parameter based on whether or not it''s been closed by your special closing code. In your special closing code (probably behind a Close button) ensure you close the Form or Report with code similar to :

Expand|Select|Wrap|Line Numbers


Hi Neopa

Thanks for reply, but still no dice.

Here is the full code.

Expand|Select|Wrap|Line Numbers


No further thoughts Phil, but you may like to reread what I said in my earlier post. LMK if further explanation is required.


这篇关于如何不保存表单或报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆