2009-03-16 13 views
6

Birisi, VBA kullanarak MS Access'te açılan bir Sorgu nesnesinin odağını nasıl ayarlayabilir? Tekrar Docmd Böyle bir şey yapıyorumVBA kullanarak MS Access'te herhangi bir nesneye odaklanma nasıl ayarlanır

...

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 

cevap

6

:-) arkadaşınız

'set the focus 
DoCmd.SelectObject acQuery, myqueryname, False 
olduğunu
İlgili konular