Code to close documents and not save changes

  • Thread starter Thread starter Jeff Byrd
  • Start date Start date
J

Jeff Byrd

We have a Word2003 merge document that merges with an Access2003 Query.
When we close the document it propmts us to save changes. What code can I
use to close the documents (the merged document and the original) and not
save any changes?
 
Either:

Doc.Saved = TRUE Word will not save a document if it thinks the doc
is saved already or unchanged since opened.

or, more simply

Doc.Close SaveChanges:=FALSE
 
Back
Top