Error 5922

I have a mailmerge between access and word  bu I am getting error 5922 ' word cannot open datasource. I m usig office 2010 and I don;t lnow if odbc drivers had to be installled.
here's the connection..

 Set wrdapp = CreateObject("Word.Application")
    Set worddoc = wrdapp.Documents.Add(Template:=myTemplate, NewTemplate:=False, DocumentType:=0)
     worddoc.MailMerge.OpenDataSource Name:="C:\Event\Boat.accdb", LinkToSource:=True,TABLE [tblBoat],SQLStatement=strsql
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jeffrey CoachmanMIS LiasonCommented:
To do a normal Mail merge in Word with an Access table/query as the source requires no code.

If you do this manually, does it work?
zachvaldezAuthor Commented:
zachvaldezAuthor Commented:
I'd like to place it in a button clivk
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Jeffrey CoachmanMIS LiasonCommented:
There are lots of links here demonstrating how to Mail Merge from MS Access

But keep this Q open for a few days more in case another expert has a more targeted solution.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
zachvaldezAuthor Commented:
 I did not have a problem since my PC got upgraded to Win 7 . My merge work well.
Now I created a new word template (dotx) with compatibility to previous version(2003). Since then Im getting 5922 error. My datasource change from Boat .mdb to Boat .accdb.

I m thinking of exporting the resultset to Excel 2010. It might work better than Access.
Jeffrey CoachmanMIS LiasonCommented:
"Now I created a new word template (dotx) ,"

Why not try using the original file first?
zachvaldezAuthor Commented:
U mean the .dot. Well I did that and I still get 5922
Jeffrey CoachmanMIS LiasonCommented:

Check the links I posted, and see if any of them are applicable.

In the mean time, we can wait and see if any other Experts chime in.
zachvaldezAuthor Commented:
I check the links but litle work in access 2010 has been done to address my question.
Thanks, the links would be useful references definitely if I encounter situations that may apply and I can always go back to this quesiton to find the hundreds of links.
Cause this is pressing, I end up doing the following
Run the query and stored it in excel file  for excample

strsql= "Select * INTO from table"
then I did
Docmd.Transfer... and save it to excel file

then I went and made the excel file as the datasource in the mail merged...

All I added was to the sub type at the end ..wdsubtype2000 something to avoid any annoying visual steps..

It could not  better.  This way if programming woun't work, the mai merged can still be built manually using the save Excel file..
Jeffrey CoachmanMIS LiasonCommented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.