access和excel用vba进行辅助办公软件开发
1、access用vba创建子窗口child查询
出现这个报错的时候,一般是用vba通过ado.connection连接,没有绑定数据源造成的:
先绑定再使用
Me.Child2.SourceObject = "表.资产管理" '连接数据源
Me.Child2.Form.RecordSource = strSql
Me.Child2.Form.Requery
2、excel中动态闹钟运行报错
这样调整后,不起作用
是宏名要和过程名字保持一致,不然就报错
Sub StartTimer()
On Error Resume Next
Calculate
Sheet1.Range("B12").Value = Now()
Application.OnTime Now + TimeValue("00:00:01"), "StartTimer"
' Application.OnTime Now + TimeValue("00:00:01"), "StartTimer", False
End Sub