We help IT Professionals succeed at work.

How to adjust size of .gif to be smaller in Microsoft Access Web Browser Control?

Last Modified: 2019-02-20
I've got some perfect .gifs in a web browser control in Microsoft Access side by side on some entry screens.  It looks really cool.
However I'm not sure how to shrink the image as is shown on other webpages a little smaller than what it currently looks like.

Does anyone know a touch of html and where to put it for this web browser control in Microsoft Access using VBA?

Here's a sample database I put together:
The gif is taken from:


Form1 is the size I want the .gif to be
Form2 is the only way I know how to display it all
I want to reduce the size though!
Watch Question

Scott FellDeveloper
Most Valuable Expert 2013

What is the current physical size and can you provide a few lines of the rendered html?  If the physical size is optimized for web already, you can typically only make images gif or jpg's smaller, not larger without distorting. However, it is still best to use the original size (use multiple images) rather than resizing in a browser.

Here is one way
  <img src="https://www.experts-exchange.com/images/experts-exchange/topHeader/expertsExchangeLogo.svg">
    <img class="small" style="width:50px;" src="https://www.experts-exchange.com/images/experts-exchange/topHeader/expertsExchangeLogo.svg">
    <img class="large" style="width:300px;"  src="https://www.experts-exchange.com/images/experts-exchange/topHeader/expertsExchangeLogo.svg">

Open in new window

And a working example https://jsbin.com/hujuyezoma/edit?html,output

I can't speak to the vba portion, but this is one way to do it with html.


Put in a sample above as to what I was talking about.
Scott FellDeveloper
Most Valuable Expert 2013

I am  not well versed in Access.  I thought you were generating html that outputs to a browser.  On the form, if you insert it as an image, then you can change the Size Mode property to zoom and it will resize.

When you insert the image through the ribbon menu, you will be prompted to select an image. Just use http://i.imgur.com/3h6gipf.gif



Yes that won't work for me because the only display of a .gif properly to keep its motion is through Microsoft Browser Web Control.
Scott FellDeveloper
Most Valuable Expert 2013

If that is the case, you will need to make the image you are bringing in the exact size you want in your form.  If you do not have a photo editing application, you can use https://pixlr.com/editor/ or https://www.fotor.com or https://www.pizap.com/photo_editor.  Just resize to what you need and either save to your drive or upload to back to imgur.
This one is on us!
(Get your first solution completely free - no credit card required)


Thanks for trying to help though.  Once you posted that html stuff - I knew I had to find something similar to accomplish this.

I also start using .gifs like something that runs fast to simulate and make it seem Microsoft Access is fast upon starting up!  And it works great.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.