Solved

Problem assigning associated OLE Field

Posted on 2001-06-13
4
227 Views
Last Modified: 2012-05-04
When I try to associate a image picture to an associated OLE field I receive an error like "OLE SERVER NOT REGISTERED". I tried to reinstall Access and it works for some time, but then still the same problem; I suppose when I install or remove other application the problem come back. Anyway, I have no idea about this error, it should not occur since I'm working with BMP image.

OLEIMAGE.Class = "Paint.Picture"
OLEIMAGE.OLETypeAllowed = acOLELinked
OLEIMAGE.SourceDoc = Preview.Picture
' Create linked object.
OLEIMAGE.Action = acOLECreateLink 'here the error occurs
0
Comment
Question by:gianluca
  • 3
4 Comments
 
LVL 4

Accepted Solution

by:
nmilmine earned 200 total points
ID: 6189126
Hi gianluca

Have you checked for missing refernces

1. Select the modules tab
2. Select New Module
3. Select Tools References
See if you have a link to reference OLE Automation
If not select it from the list and see if this helps

Neil
0
 

Author Comment

by:gianluca
ID: 6192693
I followed your indication and I add the "OLE Automation" reference. Now when I try to copy the image I receive the runtime-error 3163. If I use the copy / paste function from command menu it works perfectly.
0
 

Author Comment

by:gianluca
ID: 6196392
I added the "OLE Automation" reference in the module I have, and the error is changed : now it reports run-time error 3163.
0
 

Author Comment

by:gianluca
ID: 6196467
I solved the run-time error 3163 with the follwing code :

  OLEIMAGE.OLETypeAllowed = 1
  OLEIMAGE.SourceDoc = Preview.Picture
  OLEIMAGE.Action = 0

it was problably inverted the OLETypeAllowed value with the Action value
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now