Error: OLE server or ActiveX Control and DoCmd

H

Harry

I am using Access2000

Running either of the following commands
DoCmd.Close acForm, “frmName”, asSaveNo
DoCmd.Close
on the onClick event for a command button, results in the
following error

“A problem occurred while MSAccess was communicating with
the OLE server or ActiveX Control.

* The expression may not result in the name of a macro,
the name of a user-defined function, or [Event Procedure].
* There may have been an error evalutating the function,
event, or macro.”

It seems to be with any DoCmd command. I have the
appropriate “Microsoft Access 9.0 Object Library
(C:\Program Files\Microsoft Office\Office|MSACC9.OLB)”
installed

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top