0

我一直在为MS Access工资单工作。你如何在 VBA 函数中调用已经在 Access 中进行的查询?

Public Function InsertAndUpdate()
    //i want my queries here for conditioning
End Function
4

1 回答 1

0
Dim dbs As DAO.Database
Dim rs As DAO.Recordset

Set dbs = CurrentDb
Set rs = dbs.OpenRecordset("Your_Query_Name")
于 2013-07-11T07:13:41.417 回答