代码之家  ›  专栏  ›  技术社区  ›  Curtis Inderwiesche

如何使用VBA设置MS Access中任何对象的焦点

  •  6
  • Curtis Inderwiesche  · 技术社区  · 17 年前

    我正在做这样的事情。。。

     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
    
    1 回复  |  直到 6 年前
        1
  •  6
  •   DJ.    17 年前

    'set the focus
    DoCmd.SelectObject acQuery, myqueryname, False
    
    推荐文章