Hale, Jim
Jim.Hale at FleetPride.com
Mon Nov 13 17:27:11 CST 2006
Maybe CreateObject would do the trick instead of GetObject? "If the pathname argument is omitted, GetObject returns a currently active object of the specified type. Use CreateObject when there is no current instance of the object. If an instance of the object is already running, a new instance is started, and an object of the specified type is created. To use the current instance, or to start the application and have it load a file, use the GetObject function." Jim Hale -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: Monday, November 13, 2006 9:51 AM To: Access Developers discussion and problem solving Subject: [AccessD] Which Word? If I have Word 97 and Word XP on a machine and I use the construct Set oAppWord = GetObject(, "Word.Application") how do I determine which version I get? Having just put XP on this machine I thought changing the Reference to the Word 10 object library instead of Word 8 would do it, but it hasn't. What's the trick? -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************** The information transmitted is intended solely for the individual or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this email in error please contact the sender and delete the material from any computer. As a recipient of this email, you are responsible for screening its contents and the contents of any attachments for the presence of viruses. No liability is accepted for any damages caused by any virus transmitted by this email.