“Docmd.OutputTo ..”之后的代码忽略? [英] code after "Docmd.OutputTo.." ignored?

查看:148
本文介绍了“Docmd.OutputTo ..”之后的代码忽略?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的代码中的各个地方使用了Docmd.outputto函数,但出于某种原因,之后出现的所有代码,甚至msgbox都没有显示。我只是想知道是否有任何可能导致这种情况。例如,在下面的片段中,docmd命令会弹出一个框,表示它正在将文件输出到c:\FullTimetable.snp,但没有msgbox显示test。我有大约6个左右的if语句同样的问题,我希望它没什么大不了的。非常感谢您的帮助!

Hi, I have used the Docmd.outputto function in various places in my code but for some reason all code that comes afterwards, even msgbox doesn''t show. I was just wondering if there is anything that could be causing this. For example in the snippet below the docmd command brings up a box saying that it is outputting the file to c:\FullTimetable.snp but no msgbox appears saying "test". I have about 6 or so if statements with the same problem and i''m hoping it is nothing major. Your help is greatly appreciated!

展开 | 选择 | Wrap | 行号

推荐答案

您的任何功能都有错误处理代码?
Do any of your functions have error handling code?


在我的函数顶部:

at the top of the function I have:

展开 | 选择 | Wrap | 行号


很奇怪。输出文件是否实际创建?多个报告会发生这种情况吗?而且,如果你在调试中停止DoCmd.OutputTo并向前迈进会怎么样?
Very strange. Is the output file actually created? Does this happen with multiple reports? And, what happens if you stop on the DoCmd.OutputTo in debug and step forward?


这篇关于“Docmd.OutputTo ..”之后的代码忽略?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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