VBA,Access 2013,WIN10与WIN7中的事件序列 [英] sequence of events in VBA, Access 2013, WIN10 vs WIN7

查看:79
本文介绍了VBA,Access 2013,WIN10与WIN7中的事件序列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VBA for Access中,我已编程生成"PDF"文件。文件,然后将此文件附加到生成的Outlook邮件消息。

因此,事件序列生成PDF并生成邮件

下一次,旧的"PDF" ;应该被替换,然后附加到新生成的Outlook邮件消息。

In VBA for Access, I have programmed to produce a "PDF" file and then attach this file to a generated Outlook mail message.
So the sequence of events is generate PDF and generate Mail
In the next occasion, the old "PDF" should be replaced and then attached to a new generated outlook mail message.

在WIN7中,此过程正常。

但是,在WIN10中,Outlook邮件是不等待完成"PDF"的生成然后将附上没有文件或"旧错误"的文件。一个。

In WIN7, this procedure works OK.
However, in WIN10, the outlook mail is not waiting for the completion of the generation of the "PDF" and will then attach either no file or the "old-wrong" one.

我有 建立一个计时器。邮件的生成必须等待20秒。这不是一个好的解决方案。

I have  build a timer. The generation of the mail has to wait for 20 seconds. This is not a nice solution.

有没有人建议更好的解决方案?

Does anyone have a suggestion for a better solution?

推荐答案

我们我需要看到你的代码可以提供任何形式的帮助。
We'd need to see your code to be in any position to offer any sort of help.


这篇关于VBA,Access 2013,WIN10与WIN7中的事件序列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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