The AVI files xperience

  • Thread starter Thread starter macdoum
  • Start date Start date
M

macdoum

Ok. Be patient with me !

I searched the web And I spent all day trying to figure it out ; but
whith no such luck !


when a form opens, I wnat it to dusplay an AVI file I created.


How can I do this..


I,v tried a variaty of module codes that doesn't work. I think I havee
to put somethnig in the code of the opening event of my form but what
to insert there ?


HAHAHAHAHAHAHHAHAH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
One way would be to write a macro to run your AVI file and the in the form
open command of the code use the docmd.runmacro option to get the results you
are looking for.
 
Take a look at http://www.mvps.org/access/api/api0011.htm at "The Access
Web" for how to play an AVI file.

Copy all the code between Code Start and Code End into a new module, and
save it, making sure you don't use the name of any of the functions or subs
as the name of the module. In your form's Open event, call fPlayStuff,
passing it the complete path to the AVI file.
 
How do I use the call fPlaySt ? Like this : call fPlaySt =
'c:\flash.avi' ?


Douglas J. Steele a écrit :
 
No.

Call fPlaySt("C:\Flash.avi")

Alternatively, since it is a function, you could use:

Dim lngReturn As Long

lngReturn = fPlaySt("C:\Flash.avi")

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


How do I use the call fPlaySt ? Like this : call fPlaySt =
'c:\flash.avi' ?


Douglas J. Steele a écrit :
 
Don't forge...be patient ! I'm not a great ACCESS user...

I copied the the module [named 'module 1']

I've entered in a code (from On open):

Dim lngReturn As Long

lngReturn = fPlaySt("C:\Flash.avi")

But it dos'ent work.. It gives me a compilation error, sb or function
undifined The « fPlaySt» seems to be the problem...


What is wrong with me !!!!!!
 
I think it was my fault: that should be fPlayStuff, not fPlaySt.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


Don't forge...be patient ! I'm not a great ACCESS user...

I copied the the module [named 'module 1']

I've entered in a code (from On open):

Dim lngReturn As Long

lngReturn = fPlaySt("C:\Flash.avi")

But it dos'ent work.. It gives me a compilation error, sb or function
undifined The « fPlaySt» seems to be the problem...


What is wrong with me !!!!!!
 
I realy did everything you told me to do. I didn't try the microsoft
link yet 'cause I want the avi movie to autoplay and not to have to
press a button.

I did copy the module and the code. Do I need to insert an ActivX
control of some sort ? 'Cause it's still not working, but I'm not
receiving any error message anymore. Just that nothing happens...

Thanks for your time....
 
I used the standard code from the ms site but then then copied it to the
OnLoad and took off the button. Worked for me. Mind you a clip of my dog
biting a tree wasn't very busniess-like so took it off again.

No you don't need to load the activeX stuff (unless you haven't already -
does that make sence ??) you can get it from the insert menue (top of the
page) and then select the Axctive X Control you want.

Good luck
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top