逐步调试以autoexec宏开头的访问应用程序 [英] Debug step by step an access application that starts with an autoexec macro

查看:65
本文介绍了逐步调试以autoexec宏开头的访问应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everybody:正如我在上一个问题中提到的,我正在使用Access应用程序,并且在加载数据库时收到错误消息。



错误号是2950.它发生在宏Autoexec运行时,它尝试执行函数的代码(其中的第一个)。



我想(我之前从未使用过这个平台)我可以调试所涉及的函数代码的执行流程,一步一步地跟着它,就像我在Visual Basic或Excel中通常那样,但我不能在这里。我认为在内部查看代码也许我可以看到autoexec失败的原因,我无法从源代码运行应用程序。我想我有一个安装问题,但我需要看看它在哪里打破以及为什么。



是否可以按照一步一步的步骤执行从autoexec宏开始的Access应用程序?



我尝试过:



我在第一个涉及的函数中的第一个可执行代码行中设置了一个断点,但是流量永远不会到达那个点,错误首先出现,并且在执行宏时我看不到选项Step by step设计视图。



如果我添加一个新的autoexec宏(重命名以前存在的),当它尝试调用它上面的第一个函数时它会再次失败,(另一个函数)名称)以类似的模式。



我找到了函数的使用。它们位于代码模块中。

Hello Everybody: As I mentioned in my previous question, I´m working with an Access application and I´m getting an error message when I load the database.

The error number is 2950. It occurs when the macro Autoexec runs, and it tries to execute the code of a function (the first one in it).

I suppose (I never worked before with this platform) I could debug the flow of execution of the code of the function involved, following it step by step, as I normally does in Visual Basic or Excel, but I just can´t here. I think viewing the code internally maybe I could see the reason why autoexec fails and I can´t run the app from the source code. I guess I have an installation issue, but I need to see where it´s breaking and why.

Is it posible to follow step by step the flow of execution of an Access application starting at the autoexec macro ?

What I have tried:

I set a breakpoint in the first executable line of code in the first involved function, but the flow never gets to that point, the error occurs first, and I cannot see the option "Step by step" when executing the macro at the design view.

If I add a new autoexec macro (renaming the previously existent), it fails again when tries to call the first function on it, (another function name) in a similar pattern.

I have located the ubication of the functions. They´re in code modules.

推荐答案

用于Access数据库VBA 2950的快速Google提供了这种可能性 [ ^ ]。
A quick Google for "Access database VBA 2950" comes up with this possibility[^].


这篇关于逐步调试以autoexec宏开头的访问应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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