开发者

Calling a MS SQL Server scalar UDF from vba

开发者 https://www.devze.com 2022-12-24 13:21 出处:网络
I am programming an Access 2007 (accdb, not adp) frontend at connect to a SQL Server 2005 backend. How can I call a scalar user 开发者_如何转开发defined function from my vba code?Dim rst As ADODB.Reco

I am programming an Access 2007 (accdb, not adp) frontend at connect to a SQL Server 2005 backend. How can I call a scalar user 开发者_如何转开发defined function from my vba code?


Dim rst As ADODB.Recordset
Set rst = Connection.Execute("SELECT dbo.MyFunction('" & Me.field & "')")


Create a query that calls the function.

SELECT [FirstName], [Surname]
  FROM dbo.FindCustomersOrderByDesc();
0

精彩评论

暂无评论...
验证码 换一张
取 消