Word Template saved over by user

Posted on 2011-03-22
Last Modified: 2012-05-11

I have a user who has saved over a .dot file and each time it opens following this incident, the data it pulls from our database (via odbc) is incorrect due to the previous data still being in the .dot file.

How can I clear out the old data and reset the form to its previous state (blank) so each time it opens, the new data is pulled from the database.

Question by:daiwhyte
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 76

Expert Comment

ID: 35188816
Open it as a document, edit out the unwanted data, and save it again.

Do make sure that, in future, the template is used correctly. That is to say that it should not normally be opened as a document, but selected via File/New. If necessary, make the folder read-only.

Expert Comment

ID: 35188831
LVL 76

Accepted Solution

GrahamSkan earned 500 total points
ID: 35188835
If that doesn't work, we may need to know more about the document. For instance, what mechanism is used to populate the document from the database?
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.


Author Comment

ID: 35189213
The file is populated via a odbc connection, in this case - when the template is launched, its populated with name, address details. Whats happened is someone has opened the template and typed over these fields so the data source has gone also.
LVL 76

Expert Comment

ID: 35189351
Do you mean that you have (or had) one or more database fields to display the data?

Author Comment

ID: 35189415
Yes, Ive now managed to restore a file which has the correct links from backup, from this restore - I have been able to work out how the doc interacts with the db and have corrected the problem. Ive also made the doc's read only to stop future overwrites.
LVL 76

Expert Comment

ID: 35189692
That's good news. But also take note about how to use templates.

If it is on a network share, have all the users set their default location for 'Workgroup templates' to point to the share.

Author Closing Comment

ID: 35190170
Thanks Graham

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It is often necessary in this forum and others to illustrate Word fields as text with the field delimiters replaced with the curly brackets that the delimiters resemble when field codes are being displayed on the document. This means that the text c…
Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question