Hello - I have run into a situation which is triggering run-time error 2790, stating that I cannot embed an OLE object if the OLETypeAllowed is set to Linked. Here is my code which I am clearly setting the type to "Embedded":
When I go back into the design of the OLE frame on my form, the OLE Type Allowed keeps going back to "Linked" even though I am changing it to Embedded. Any ideas?
Kelly
Code:
oleChart.OLETypeAllowed = OLE_EMBEDDED
oleChart.Class = "jpegfile"
oleChart.SourceDoc = txtProjDir & "\chart.jpg"
oleChart.Action = acOLECreateEmbed
oleChart.Action = acOLEActivate
When I go back into the design of the OLE frame on my form, the OLE Type Allowed keeps going back to "Linked" even though I am changing it to Embedded. Any ideas?
Kelly