创建存储SQL过程的唯一方法是编写如下VBA函数是否正确?
Public Function CreateProc()
Dim strProc As String
strProc = "Create Procedure qryCustByCity " & _
"(prmCity varchar) as " & _
"select * from Customers where City = prmCity"
CurrentProject.Connection.Execute strProc
End Function
还是有更方便的方法?像交互式命令提示符这样的东西会很棒。