I am running Access 97 and Office 2K (without Access 2K) on a machine with
Windows ME. I can set up an OLE link between Access and most other programs
(Excel, Adobe), but for some reason not Word. This program runs on other
machines without a problem except as noted below.
Here's what I have done so far with no luck:
- Uninstalled and reinstalled Office 2K and Access 97
- Renamed Word Normal.dot to Normal.bak after reinstalling Office 2K
- Disabled Norton Antivirus script protection and from monitoring Word
I encountered the same problem on another machine that had MS Works
installed. After uninstalling Works and making the fixes above, that
problem was solved. This machine does not have Works.
Any suggestions would be greatly appreciated.
i was wondering what would happen if you installed works onto the computer
thats not working
regards,
Richard
"IC_Clearly" <iccl...@mindspring.com> wrote in message
news:uroXT55KCHA.388@tkmsftngp09...
Regarding installing Works, I don't believe that would help. In fact, in
might be more of a problem. Apparently there is a conflict between Works
and Word as it relates to OLE access and removing the Word component of
Works eliminates the problem.
"Richard S Krupa" <ric...@merlinpos.com.au> wrote in message
news:ui7x$A7KCHA.2256@tkmsftngp13...
HTH
- Turtle
"IC_Clearly" <iccl...@mindspring.com> wrote in message
news:uroXT55KCHA.388@tkmsftngp09...
--
HTH
Van T. Dinh
MVP (Access)
"MacDermott" <macde...@mindspring.com> wrote in message
news:agui76$5hl$1...@nntp9.atl.mindspring.net...
>You might want to try opening your Access application, opening a code
>module, and clicking Tools - References.
>Make sure you include a reference to MS Word.10 object library, and remove
>the reference to MSWord.9 object library if it's there.
If your target systems have different versions of Word installed then
you'll want to use late binding.
Late binding means you can safely remove the reference and only have
an error when the app executes lines of code in question. Rather than
erroring out while starting up the app and not allowing the users in
the app at all. Or when hitting a mid, left or trim function call.
While this might be slightly slower when resolving the reference I
find this to be quite acceptable. Also you would likely set the
reference once at the start of some kind of "batch run" and close it
when done so the performance hit would be negligible.
If you are using Excel and Word constants, which are much easier to
use (and understand of course) than values.then copy/define the
constants into Access. Just use Access syntax in Access to define the
constants in a global module! (paragraph by Chris Mills)
You'll want to install the reference if you are programming or
debugging and want to use the object intellisense stuff. Then once
its running smoothly remove the reference and setup the late binding
statements.
Sample code:
' Declare an object variable to hold the object
' reference. Dim as Object causes late binding.
Dim objWordDoc As Object
Set objWordDoc = CreateObject(" Word.Document")
For much more detailed information visit the following links:
OFF2000: Microsoft Office 2000 Automation Help File Available
[Q260410] at the Knowledge Base at support.microsoft.com has some
examples on early/late binding.
INFO: Writing Automation Clients for Multiple Office Versions
(Q244167)
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q244167
INFO: Using Early Binding and Late Binding in Automation (Q245115)
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q245115
MSDN: Early and Late Binding
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/office97/html/SF7A4.asp
Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
As mentioned, I ran into this problem on another machine, but was finally
able to find a fix. One difference between this machine and the other is
that this machine has NAV 2002 and the other had 2001. NAV is known to
create these types of problems. BUT, I did remove NAV from the start-up
group and rebooted. That did not make a difference. But some have said
that NAV may still continue to operate in the background.
Any thoughts on these ideas?
In any event, Tony's suggestion of late binding might be the next stop.
IC
"Van T. Dinh" <VanThi...@PlseUseNewsgroup.bigpond.com> wrote in message
news:OcUJqYALCHA.2256@tkmsftngp13...
--
Brendan Reynolds (MVP)
bren...@indigo.ie
Access 2000/2002 sample app at
http://brenreyn.brinkster.net
----------------------------
"IC_Clearly" <iccl...@mindspring.com> wrote in message
news:em8$xmFLCHA.2792@tkmsftngp13...
Thanks.
"Brendan Reynolds" <bren...@indigo.ie> wrote in message
news:uIQcOMMLCHA.1924@tkmsftngp13...
Please post replies/further questions to the newsgroup so that all may
benefit. Personal requests for assistance can not be acknowledged.
"IC_Clearly" <iccl...@mindspring.com> wrote in message
news:uroXT55KCHA.388@tkmsftngp09...
I do have Norton (see prior thread discussions) and I have applied the
Office Plug In fix as well as the disable script fix. I even disabled NAV
in the start-up so it did not run. None of the NAV fixes worked. My next
move is to uninstall NAV completely. By the way, when I had this problem at
another location, you gave me several tips (Works, Normal.dot, NAV) to solve
that problem. Your suggestions worked there, but I'm not having much luck
at this location.
"Beth Melton" <bme...@mvps.org> wrote in message
news:eTo#prNLCHA.1008@tkmsftngp10...
As I mentioned in the posting below, I had run into this problem once
before. In this instance I thought I had eliminated the NAV problem because
I did a clean boot and the problem was still present. Well apparently NAV
must be running in the background even though it is not loaded in the
startup. I also had previously disabled NAV from scanning Word, BUT I
apparently had not deactivated script blocking.
Thanks again to all for the suggestions.
"IC_Clearly" <iccl...@mindspring.com> wrote in message
news:uroXT55KCHA.388@tkmsftngp09...