Error Number: 4198
Error Description: Command Failed
It is this line:
.OpenDataSource "", wdOpenFormatAuto, false, true, false, false, "", "", true, "", "", "DSN=<dsn_here>;UID=<uid>;PWD=<password>", "SELECT * FROM EMP WHERE EMPNO = " & id, "", false, wdMergeSubTypeWord