FollowHyperlink打开一个文件,但不可见 [英] FollowHyperlink opens a file, but not visible

查看:161
本文介绍了FollowHyperlink打开一个文件,但不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Access 2010

Full Office 2010软件

Win 7 64位

使用FollowHyperlink方法并传递已知/良好的文件路径&名称,文件打开succsessfully,但在后台,数据库仍然可见。用户已转到任务栏并手动单击文件图标以使其可见。我无法弄清楚如何强制文件打开可见&在上面。表单属性是Popup = True,Modal = False


这是我的代码(此代码在以前版本的Access中运行良好)

Access 2010
Full Office 2010 software
Win 7 64 bit

Using the FollowHyperlink method and passing a known/good file path & name, the file opens succsessfully, but in the background, with the database still visible. The user has go to the task bar and manually click the file icon to make it visible. I cannot figure out how to force the file to open visible & on top. The form properties are Popup = True, Modal = False

Here is my code (this code worked fine in previous versions of Access)

展开 | 选择 | Wrap | 行号

推荐答案

尝试更改当前行11:
Application.FollowHyperlink DocPathName


to:
Try changing your current line 11:
Application.FollowHyperlink DocPathName

to:
展开 | 选择 | Wrap | 行号


感谢您的回复,但这不起作用。我实际上已经尝试将NewWindow属性设置为True。文件仍然打开,然后立即进入任务栏,数据库仍然可见
Thanks for the reply but that does not work. I actually already tried setting the NewWindow property to True. The file still opens, then immediately goes down to the task bar with the database still visible


我认为你必须将应用程序作为对象...例如:


>>以下是航空代码!

if:DocPathName =" C:\ Excel \\ _excel.xls"

然后:
I think you''re going to have to get the application as an object... for example:

>>The following is air code!
if: DocPathName = "C:\ExcelReport.xls"
then:
展开 | 选择 | Wrap | 行号


这篇关于FollowHyperlink打开一个文件,但不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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