Share via

Microsoft Word SQL Command Error

Anonymous
2017-10-13T16:21:42+00:00

I have a Word Document that uses an Excel File for a data source for a mail merge.  I've moved the Excel file to a new folder and now I get the following message:

Opening this document will run the following SQL Command:

SELECT + FROM /xxx/xxxx.xllxs <<< old location

Data from your database will be placed in the document.  Do you want to continue?

When I click on Yes I get the following message:

Sorry, we couldn't find \xxx\xxx.xlxs.  Is it possible it was moved, renamed or deleted?  [OK]

Clicking OK will then open the file.

How do I change the path of the data source to the new location so I don't get the error message about the wrong path?

I using Word from Office 365.

Thank you.

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Vijay A. Verma 104.8K Reputation points Volunteer Moderator
2017-10-14T03:15:40+00:00

Check below link. The last post has a possible solution for your problem

https://social.technet.microsoft.com/Forums/ie/...

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. ScottGem 68,830 Reputation points Volunteer Moderator
    2017-10-13T18:09:00+00:00

    I believe you need to recreate the Data Document as part of the mail merge. Or at least change the properties of the data document.

    Was this answer helpful?

    0 comments No comments