[英]Bring Access Window On Top When Opened From Excel
I have an Excel 2010 spreadsheet that brings in data from an Access 2010 database. 我有一个Excel 2010电子表格,可以从Access 2010数据库中导入数据。 The user has to login to be able to access the records. 用户必须登录才能访问记录。 When Access opens, the icon in the taskbar flashes, but stays behind whatever else is on the screen. Access打开后,任务栏中的图标会闪烁,但会停留在屏幕上其他任何图标的后面。 What I want is for Access to become the active window so that there's no chance of the user missing it. 我想要的是使Access成为活动窗口,以便用户没有机会丢失它。
What would be the best way to go about doing this? 这样做的最佳方法是什么?
I have used AppActivate
before, but I don't necessarily know the pros and cons. 我以前使用过AppActivate
,但不一定了解其优缺点。
Sub ActivateAccess()
On Error Resume Next
AppActivate "Microsoft Access"
On Error GoTo 0
End Sub
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.