Hi Guy's,
I'm trying to send a table to my server with this SQL code but i get an error message "Expected:=" can anyone see where i have went wrong?
Function ODBCConnect()
Dim strSQl As String
strSQl = "SELECT * INTO [C:\Documents and Settings\Tom\Desktop].[tbltemp] " & _
"[ODBC;DSN=EmpDetSQL;UID=trusted_connection=YES;Table=dbo.tblTemp] " & _
"[ODBC;Driver=SQL Server;Server=172.31.112.32;Database=EmpDetSQL;UID=trusted_connection=YES;Table=dbo.tblTemp] " & _
"FROM tblTemp "
DoCmd.RunSQL strSQl
End Function
thanks in advance
I'm trying to send a table to my server with this SQL code but i get an error message "Expected:=" can anyone see where i have went wrong?
Function ODBCConnect()
Dim strSQl As String
strSQl = "SELECT * INTO [C:\Documents and Settings\Tom\Desktop].[tbltemp] " & _
"[ODBC;DSN=EmpDetSQL;UID=trusted_connection=YES;Table=dbo.tblTemp] " & _
"[ODBC;Driver=SQL Server;Server=172.31.112.32;Database=EmpDetSQL;UID=trusted_connection=YES;Table=dbo.tblTemp] " & _
"FROM tblTemp "
DoCmd.RunSQL strSQl
End Function
thanks in advance