I'm trying to find out how I can access scalar functions from the SQL Server database of my adp file.
I have an adp file in access 2007 and a SQL Server 2005 DB.
In access VB I try to get the result of a scalar function with parameters.
I tried with DAO, but it that case currentdb = nothing:
Dim dbs As DAO.Database
Dim sql2 As String
Dim txt As String
Dim iCount As Integer
Set dbs = CurrentDb
txt = "SELECT * FROM dbo.TBL_Klanten" '(tbl_klanten is in the msql DB) '
dbs.Execute txt, dbFailOnError