GetObject failed. (I had previously posted about that, same problem). I'm
re-focusing my effort to find another (better) way than the MailMerge code I
was using instead of trying to figure out what is wrong with GetObject.
Thanks!
> As RuralGuy suggested, check Albert's code.
>
[quoted text clipped - 25 lines]
> >
> > Thanks-
Wasn't what you asked for, but just as a suggestion, it may be easier to
write your code in MS Word VBA using Word to hook into the access db.
Cheers
Ian B
> GetObject failed. (I had previously posted about that, same problem). I'm
> re-focusing my effort to find another (better) way than the MailMerge code I
[quoted text clipped - 29 lines]
> > > WORD allows the users to have control over the content of the letters and
> > > create as many as they want- (and I don't have to maintain them
) )
> > > Thanks-
> GetObject failed. (I had previously posted about that, same problem).
> I'm
> re-focusing my effort to find another (better) way than the MailMerge code
> I
> was using instead of trying to figure out what is wrong with GetObject.
The "better" way you are looking for is to use my wordmerge example. It also
uses GetObject, but have been used on every conceivpale combiaton of
operatong ytems and every copy of word MIXED with differnt versions of
ms-access, and it STILL works!!!
It uses late binding so getobject will not fail.....
So, my example has been downloaded and used by 1000's and 1000's of people
with every version from office 97 to 2003 without a hitch....
My code example is DESIGNED from the ground up to merge the current record
you are looking at, and also has provisions for specifying a query to use.
It is fast, simple, and most merges you write for a form take 1, or two
lines of code (yes, I am not kidding..1, or 2 lines of code..that is it
!!!!).
You can find it here:
http://www.members.shaw.ca/AlbertKallal/msaccess/msaccess.html

Signature
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com
Loralee - 29 Nov 2006 04:53 GMT
Thanks, that's cool.
I've only had a chance to do a quick once-over, and didn't see any specific
guidance as far as express permission to use within an app. As long as I
leave everything intact (comments, etc.) can I assume it's okay to use? We
are using it for an app we use internally in a local public health program
for a nursing project- not for resale or any such business.

Signature
Loralee
> > GetObject failed. (I had previously posted about that, same problem).
> > I'm
[quoted text clipped - 21 lines]
>
> http://www.members.shaw.ca/AlbertKallal/msaccess/msaccess.html
Albert D. Kallal - 02 Dec 2006 22:27 GMT
all yours to use.....

Signature
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com