Solutions for database error on server

Asked By 30 points N/A Posted on -
qa-featured

Hi guys,

I found my database works just fine on my hard drive but not on the server.

I receive the error:

'ActiveX Component Can't Create Object' 

these are the line of code that triggers the error:

Set appWord = GetObject(, "Word.Application")

Any ideas for this?

I am owner of the server so unable to make any updates there.

Thanks.

SHARE
Answered By 5 points N/A #109973

Solutions for database error on server

qa-featured

The Syntax used here Set appWord = GetObject(, "Word.Application") seems to be the root cause of the error.

This is basically utilized to open the application instance.

This is not recommended here. If the instance is not opened and this syntax is used it can be problematic and can feasibly yield error. Under these circumstances create object can be efficiently used.

Hence the syntax should be as listed below.

 Set appWord = CreateObject ("Word.Application")

Besides, ensure that you have administrative rights on the server.

Kinldy make sure that Microsoft office is installed on the server that you are currently using as most server are basically deprived of the software.

Related Questions