473,385 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Animated GIF in MS Access 2003

Zwoker
66
Greetings,

I'm wanting to display an animated GIF on a form in MS Access 2003.

Is there a "native" way of doing this, just using standard controls and/or VBA code? Or do I need some sort of add-on?

I googled for a solution and found some Visual Basic 6 code that looked promising, but it appeared to use items that are not present in my version of MS Access to do the job.


Thanks,
Zwoker.
Apr 28 '08 #1
9 35302
ADezii
8,834 Expert 8TB
Greetings,

I'm wanting to display an animated GIF on a form in MS Access 2003.

Is there a "native" way of doing this, just using standard controls and/or VBA code? Or do I need some sort of add-on?

I googled for a solution and found some Visual Basic 6 code that looked promising, but it appeared to use items that are not present in my version of MS Access to do the job.


Thanks,
Zwoker.
Here is a Method that I have personally tried, and whose results are very impressive.
  1. Place the Attachment (Gif89.dll, once unzipped) into your C:\Windows\System32 Folder. This is an ActiveX Control.
  2. Register this ActiveX Control with Windows, via:
    1. Start Menu
    2. Run
    3. C:\Windows\System32\Regsvr32.exe c:\Windows\System32\Gif89.dll
  3. Register the ActiveX Control with Access, via:
    1. Tools
    2. ActiveX Controls
    3. Register
    4. Change Files of Tyoe to .dll
    5. Browse for Gif89.dll
    6. Register
  4. Open a Form in Design View
  5. Insert
  6. ActiveX Control
  7. Select Gif89 Class
  8. Set the FileName Property to the Path of your Animated Gif
  9. Personally, I set the Embed Property to Yes
NOTE: I know there are several steps to perform, and that they would have to be done on each PC that will support Animated Gifs in an Access Form, but I can tell you that I had no problem at all and the results were quite impressive.
Apr 28 '08 #2
Zwoker
66
They would have to be done on each PC that will support Animated Gifs in an Access Form
Thanks ADezii, but I really need an option that doesn't require any sort of installation of any "extra" things like the DLL. The environment that the final MDE will run in is very tightly controlled - putting things in the windows directories is not allowed.

Do you have any other options?


Thanks,
Zwoker.
Apr 28 '08 #3
FishVal
2,653 Expert 2GB
Hi, Zwoker.

You may use WebBrowser control (I guess available in all versions of windows) to represent animated GIF.

Regards,
Fish
Attached Files
File Type: zip AniGIF.zip (27.2 KB, 6697 views)
Apr 28 '08 #4
ADezii
8,834 Expert 8TB
Hi, Zwoker.

You may use WebBrowser control (I guess available in all versions of windows) to represent animated GIF.

Regards,
Fish
Nice one, Fish. BTW, what is the purpose of the following line of code. Toggling the value to 'Yes' seems to have no effect, eliminating this code also seems to have no effect.
Expand|Select|Wrap|Line Numbers
  1. Private Sub ocxWebBrowser_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
  2.     Me.ocxWebBrowser.Object.Document.Body.Scroll = "yes"
  3. End Sub
Apr 28 '08 #5
FishVal
2,653 Expert 2GB
Nice one, Fish. BTW, what is the purpose of the following line of code. Toggling the value to 'Yes' seems to have no effect, eliminating this code also seems to have no effect.
Expand|Select|Wrap|Line Numbers
  1. Private Sub ocxWebBrowser_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
  2.     Me.ocxWebBrowser.Object.Document.Body.Scroll = "yes"
  3. End Sub
Removes vertical scrollbar. I've spent near half an hour this morning trying to figure out how it could be hidden. Do you mean you didn't notice it without this code?! 0_o
Apr 28 '08 #6
ADezii
8,834 Expert 8TB
Removes vertical scrollbar. I've spent near half an hour this morning trying to figure out how it could be hidden. Do you mean you didn't notice it without this code?! 0_o
Thanks Fish, I seem to be missing a lot these days (LOL)!
Apr 28 '08 #7
Zwoker
66
Thanks FishVal. That works great!
And removing the scroll bars was good too - it looks nasty with them present.

I also like the Tiger animation, even if it does have a sad ending. :(


Zwoker.
Apr 28 '08 #8
atksamy
91
hello,

The web browser method for using gif files is a cool one. But i am facing a small problem in this. My gif file is black in color. I am getting a white border on the top and left sides. Even after trying to re size the browser i am not able to get the white border in the left and top to go away. Is there any other way to do this.

thanks
Apr 20 '10 #9
@atksamy
Its too late to reply, but was just going through the post and saw this query.

Here is the solution for anyone who is looking out for this.

Place this in the browser event
Expand|Select|Wrap|Line Numbers
  1. Me.ocxWebBrowser.Document.body.Style.Border = "none"
Dec 4 '13 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: BT Openworld | last post by:
I have just had to upgrade to Access 2003 as Access 97 EMail (SendObject) doesn't work when loaded on Windows XP. I'm finding my way around Access 2003 but my biggest problem is getting...
1
by: Wayne Aprato | last post by:
I have a client who is running several Access 97 databases that I have written for them. They are about to upgrade to Access 2003. Is the default file format of Access 2003 still Access 2000 the...
3
by: Colin Chudyk | last post by:
Hi, Here is my situation. Can anyone provide insight? I have developed a database in Access 2002. I am planning to distribute it as a split MDE (front) / MDB (back) to be used by the Access...
7
by: Wayne Aprato | last post by:
I have several Access 2003 mde databases. When I try to open them in Access 2002 I get the following error: "The Visual Basic for Applications project in the database is corrupt." ...
2
by: Jeff | last post by:
Does anyone know of any potential problems running a 2000 database with 2003? Also, what about installing all other Office products as 2003 versions but leaving Access as 2002 running a 2000...
10
by: Lauren Wilson | last post by:
Ok I have searched the MS website for info on this. I am totally confused. If I want to deploy an Access 2003 app and allow my users to run it using Access 2003 Runtime, where do I get the...
49
by: Mell via AccessMonster.com | last post by:
I created databases on Access 2003 and I want to deploy them to users. My code was also done using 2003. If they have Ms Access 2000 or higher, will they be able to use these dbs with all code,...
5
by: Ecohouse | last post by:
I'm using VB and an Access 2003. The db was originally created in Access 2000, but the computer had to have things reinstalled and now has Access 2003. So I was wondering if there are any...
6
by: Donald Grove | last post by:
I do programming in Access 2000 and 2003. I don't have a copy of 2003 myself, though. I have read about the adp software that comes with Access 2003, that converts an application to an access...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.