Can you tell me how to write a one.
The below one failed for me.
tempDefTable is from SQLSERVER and the name is NTSQLSERVER
strDelDefTemp = "DELETE OPENQUERY (NTSQLSERVER,'DELETE FROM tempDefTable')"
DoCmd.RunSQL strDelDefTemp
Multiple users is going to use this application.So I think droping and recreating will throw some table permission problem..
Please help me, to achieve this using pass-through.
Dim qdfPassThrough As DAO.QueryDef
Dim strConnect As String
strConnect = "Driver=SQL SERVER;SERVER = NTSQLSERVER;Database=TEST;UID=mlp;password=''"
qdfPassThrough.Connect = "ODBC;" & strConnect
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.