CreateObject ("Word.Application") ACCESS 2000 error 48 in loading dll


Have a problem that is driving me a bit mad , i have a db that works absolutely fine on a number of machines, except the one it should do. The code that creates the error is:

Public oWord As Object
Set oWord = CreateObject("Word.Application")

nothing wrong there , the code is doing a merge function and on the machine in question throws up an error 48 when you try and use the create object line.

I have uninstalled office, reinstalled it checked the reg and can find nothing wrong with it, i even managed to get the automation object working on a simple script. this case the object is called as part of another routine.

what i want to know is has anyone had anything profoundly odd like this before and if so what was the cause?

Who is Participating?
peter57rConnect With a Mentor Commented:
Hello markofsoton,

Well you've identified that it's machine specific so it is probably something to do with the set up of that machine.

You could use this on your msaccess.exe to see if there is a dll problem,

Alternatively/as well you could decompile the app using the /decompile switch and then compile it on the problem machine to see if any problems declare themselves.

markofsotonAuthor Commented:
got shot of the machine in the end, apparently had a history of being rubbish
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.