且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

需要创建DAO / VBA执行的操作日志

更新时间:2023-01-12 11:55:09




它可能有点简单,但不是尝试要使用任何类型的MS Access报告,您只需将程序执行的每个活动的状态写入文本文件即可。你可以使用类似下面的代码:

Hi,

It may be a little simplistic, but rather than trying to use any sort of MS Access report, you could just write the status of each activity that your program performs to a text file. You could use code something like the following:

展开 | 选择 | Wrap | 行号






它可能有点简单,但您可以只编写程序执行的每个活动的状态,而不是尝试使用任何类型的MS Access报告。一个文本文件。你可以使用类似下面的代码:

Hi,

It may be a little simplistic, but rather than trying to use any sort of MS Access report, you could just write the status of each activity that your program performs to a text file. You could use code something like the following:

展开 | 选择 | Wrap | 行号



完美!!是的,这正是我所需要的 - 没什么特别的。我感谢您的帮助!我会看看我是否可以正确地声明LogFile ...
perfect!! yes, that is exactly what i needed--nothing fancy. i appreciate your help! i''ll see if i can get the LogFile declared properly...



LogFile声明将按上面的编码工作,它总是困扰我,我无法'找不到它应该是什么类型。


我很高兴这就是你要找的东西。我想知道你是否需要更复杂的东西。


问候,

Zwoker。

The LogFile declaration will work as coded above, it just always bothered me that I couldn''t discover what type it should actually be.

I''m glad this is what you were looking for. I wondered if you needed something a bit more sophisticated.


Regards,
Zwoker.