[Migrated content. Thread originally posted on 13 November 2003]
Hello,I am trying to determine the type of document I am opening to see if it is a Mail Merge Main Document. I am inquiring the @State of the document to determine the type of the document. In versions of Word prior to 2003, it would return the correct information, with Word 2003 it is always returning a "0" which signifies that its just a normal document. I have also tried inquiring the @MainDocumentType and with 2003 it just returns a -1 which means it not a mail merge document.
I'm letting the users select the mail merge main document and I want to make sure that it is a mail merge main document and not a regular word document. If I don't check the document type, and I choose a mail merge main document , my mail merge still works properly on all version of Word. If I allow them to select a "Normal" document I sometimes get errors with Word, which I don't want to happen.
Thanks for your help,
Scott



