[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


OLE Class in Unbound object frame

Posted on 2006-04-14
Medium Priority
Last Modified: 2008-03-17
Hello Expert,
Can you tell me the OLE class for mpeg and wmv files? is it "mpeg/video"? thanks Joel
Question by:JoelRidley
  • 2
LVL 58

Accepted Solution

harfang earned 1000 total points
ID: 16453609
In fact, the object type is not document-related, but application related. I know this is stupid, but that is the basic choice made by M$: the program is more important than the data...

Basically, create a new blank form, choose "Insert / Object", choose an application that will allow this or choose "create from file" and see what type you inherit.

Good luck!

Author Comment

ID: 16474182
Hello (°v°),
Interesting name..... Your soklution is correct it gave me the class info I needed.
Do you have an easy way to use a text field(full path of file) to link the OLE field to the mpg or wmv file. Embedding makes the database get extremely large where as a text link would be nothing Thanks Joel
LVL 58

Expert Comment

ID: 16474329
Well, I would never store OLE objects in a database... Instead:

* store a "root path" in some options table or property, e.g. "C:\DOCS\"
* store relative paths for any objects, e.g. "demos\howtoeat.mpeg"
* manipulate an unbound object frame to display most of these inline (on the form)
* or use FollowHyperlink "<full path>" to launch the object externally

I often skip the first step by assuming that the database path is the root for linked documents. This makes it easy to move, archive, backup the whole thing.

I believe that the latest versions of Northwind.mdb have a demonstration of externally stored pictures. Of course, that is easier than videos (I have no experience with those).


PS: It's the face of an owl, or a harfang, to be exact... see my profile ;)

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

872 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