I'm sorry, but what is it that you don't understand???
You've apparently got two lines of code repeated below, that are considered
early bound code (actually, you added the word "or" on the end of the first
line, but I'll assume that was a typo):
Dim appWord As Word.Application
Dim docs As Word.Documents
This code requires a checked reference to the "Microsoft Word x.x Object
Library", where x.x represents the version number (sounds like it might be
11.0 in your case, so I'm assuming you have Office 2003 without Access
installed, plus your older copy of Access from Office 97.
Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________
:
I do not understant your solution.
--
Regards
Tahseena Ishrat Ahmed
__________________________________________
:
You need to select the Microsoft Word {version} Object Library, if you are
going to use early bound code. You may not even need the reference that you
have added for the Office Object Library.
Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________
:
Dear Group
I have another problem. In access 97, if I want to declare a variable named
Dim appWord As Word.Application or
Dim docs As Word.Documents
I get compilation error: User defined type not defined
Do you think, I should select something in Reference, I have already select
Microsoft Office 11.0 Object Library, but it still showing the same
compilation error.
Please solve my problems.