如何从Access Form以编程方式打开word文档(.dotm)? [英] How does one open word document (.dotm) programmatically from Access Form?

查看:116
本文介绍了如何从Access Form以编程方式打开word文档(.dotm)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一张用于检查的表格;在执行检查的过程中,用户可能需要创建word文档。 为此,我使用的是一个"命令按钮",其中包含指向文档在网络上的位置的超链接'Z:\ folder \forms\Form039.dotm' 但是当使用超链接打开时
文档在顶部打开标题为"Form039",而不是在网络上手动打开时打开"Document1"。 如何使用VBA自动化与我的"命令按钮"以编程方式打开Word文档,以便它正常运行


谢谢


jms

解决方案

你好jms,


你是说文字是超链接字段,或者您是否使用某些代码打开模板文件?如果是这样,你能告诉我们代码吗?感谢。


I've got a form used for inspections; in process of performing an inspection a user may need to create a word document.  To do so I'm using a 'Command Button' with a hyperlink to the document's location on the network 'Z:\folder\forms\Form039.dotm' But when opened using the hyperlink the document opens titled 'Form039' at the top, not 'Document1' as it does when opened manually on the network.  How can I used VBA automation with my 'Command Button' to open the Word doc programmatically so that it functions properly?

Thanks

jms

解决方案

Hi jms,

Are you saying the text is a hyperlink field, or are you using some code to open the template file? If so, can you show us the code? Thanks.


这篇关于如何从Access Form以编程方式打开word文档(.dotm)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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