Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using OLEActivate Error message

Status
Not open for further replies.

Eightball3

Programmer
Nov 23, 2002
138
US
I'm using Access 2000 in Windows 2000. I have some VBA code that is supposed to play a sound. Here it is. Me![found].action = acOLEActivate. [Found] is an OLE Class Microsoft Sound Recorder Server. I used the command above to activate and play the sound. It worked great on WinNT with Access 97 but not in Win2K Access 2000. I get the following error message. 'A problem occurred while Access was communicating with the OLE server or ActiveX Control.'

Do I need to set a reference in the library..if so which one? Thanks for any suggestions. Maybe there is a better way to play this sound?
 
I got the same message for various ActiveX objects when my form was initially created by a wizard (laziness, oh sweet laziness).
When I re-created the form from scratch, the problem was gone.

Don't ask me why, and I can't say it will surely work for you. But it's worth a try.

Good luck


[pipe]
Daniel Vlas
Systems Consultant

 
I had this error. I closed and restarted the database and it didn't happen again. I thought it was because I was playing with the code and the OLE server got confused. Haven't had the error since then...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top