我有一个关于 access 2000 或 2003 的问题,我需要制作一个宏来打开表单并自动单击运行查询的按钮,我该怎么做,可能有一些例子可以帮助我做到这一点?有什么建议么 ?我的想法是运行这样的东西:
Sub Refreshfiledata()
m = MsgBox("Are you sure you want to run this macro ?.", vbYesNo)
If m = 6 Then
Application.DisplayAlerts = False
SendKeys "{Enter}"
Application.DisplayAlerts = True
MsgBox "Done"
End If
End Sub