gpt4 book ai didi

vba - 将焦点设置在任何对象上

转载 作者:行者123 更新时间:2023-12-04 15:05:42 24 4
gpt4 key购买 nike

有人如何使用 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com