我一直在为MS Access
工资单工作..如何在VBA函数中调用已在Access中创建的查询?
Public Function InsertAndUpdate()
//i want my queries here for conditioning
End Function
答案 0 :(得分:0)
Dim dbs As DAO.Database
Dim rs As DAO.Recordset
Set dbs = CurrentDb
Set rs = dbs.OpenRecordset("Your_Query_Name")