有人如何使用 VBA 在 MS Access 中设置打开的查询对象的焦点?
我正在做这样的事情......
If Application.CurrentData.AllQueries(myqueryname).IsLoaded = True Then
'set the focus
' Export to office links for analysis
CommandBars("Menu Bar").Controls("Tools").Controls("Office Links").Controls("Analyze It With Microsoft Office Excel").accDoDefaultAction
最佳答案
再次 docmd 是你的 friend :-)
'set the focus
DoCmd.SelectObject acQuery, myqueryname, False
关于vba - 将焦点设置在任何对象上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/652094/