OLE Class in Unbound object frame

Posted on 2006-04-14
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
    LVL 58

    Accepted Solution

    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

    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

    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

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    In the previous article, Using a Critera Form to Filter Records (, the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
    Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
    Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
    In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

    754 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

    20 Experts available now in Live!

    Get 1:1 Help Now