Windows 7 SP1 中断访问(不是 ADO 方式)
因此,我们公司的 IT 部门决定是时候在每个人的 PC 上强制安装 SP1 了。
这意味着我需要让我的 Access 2003 ADE 应用程序能够解决愚蠢的 ADO 不兼容问题。
我通过遵循 KB2517589 让 ADO 部分正常工作,但现在我的几个文本框显示 #Name?。
它们绑定到代码,因此,例如,文本框中的数据字段是 =CalcShippingAddr()。
作为测试,我用以下代码替换了代码:
Public Function CalcShippingAddr() As String
msgbox "Func Called"
CalcShippingAddr = "Test"
End Function
这在我的开发机器上运行良好,但是一旦我制作 ADE 并将其发送到没有 SP1 的 PC,我就会得到#Name?在文本框上。消息框永远不会弹出。
有什么想法可能会发生什么吗?
So our corporate IT dept has determined that it is time to force SP1 on everyone's PC's.
Which means I need to get my Access 2003 ADE application working with the stupid ADO incompatibility problem.
I got the ADO portion to work by following KB2517589, but now several of my textboxes say #Name?.
These are bound to code, so, for example, the data field in the textbox is =CalcShippingAddr().
As a test, I replaced the code with the following:
Public Function CalcShippingAddr() As String
msgbox "Func Called"
CalcShippingAddr = "Test"
End Function
This works fine on my dev machine, but as soon as I make an ADE and send it to a PC without SP1, I get #Name? on the textbox. The msgbox nevers pops up.
Any ideas what might be happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是字段计算的一个错误,我自己没有看到它,但听说单击相关文本框就会显示该值,尽管这不是解决方案。我始终建议使用未绑定的表单,因为您可以逐步控制字段/对象正在执行的操作。由于您已经有一个自定义函数来计算送货地址,那么它应该足够简单,您可以在表单“打开”或“加载”事件中添加代码,例如
This is a fault to do with the field calculation, I haven't seen it myself but have heard that clicking in to the relevant text box would then show the value although this is not a solution. I would always recommend using unbound forms as you can control step by step what your fields/objects are doing. As you already have a custom function to calculate the shipping address then it should be simple enough for you to add the code the the forms 'Open' or 'Load' event e.g.