I want to insert data in a remoteTable (in a remote SQL Server instance) with data from a localTable (in a local MS Access).
In Access, I have a button in a Form that will execute this update, so I need to hide from the users the credentials for SQL Server accessing.
Since many users would execute this update, I would like to create a Function or Procedure that creates a DSN-less connection to SQL Server for linked table in Access, avoiding users have to create ODBC connection, making it more transparent and simple to the user.
Private Sub SendDataToSQLServerWithoutCreatingODBC_Click()
'call a function or procedure to connect to remote SQL Server
'update remoteTable with retrieved data from localTable
'in T-SQL, it would be: INSERT INTO remoteTable SELECT * FROM localTable
End Sub
Thanks in advance.