Data Control, LLC
Access Database Consulting
Skip to content
  • Home
← Calculating travel time between two locations
Finding data holes and filling them in Microsoft Access →

Using a stored graphic consistently throughout your database

Posted on March 13, 2017 by Jack

So you want to have a company graphic on all of your reports and forms? But you also don’t want to store the graphic 20 times in each object? And you don’t want to hyperlink to the graphic because your users may not have access to the hyperlink? Lastly, you want the ability to change the graphic quickly and have that graphic roll out to all of your objects immediately? Here’s the solution.

In all of my databases I create a table named ‘zstblInformation’. In this table I create an ole object field ‘CompanyLogo1’. By the way, I also create ‘CompanyLogo2’ etc…

picture maintenance zstblinformation design view

picture maintenance zstblinformation preview

Open this table and copy your graphic into the new field. I do this a variety of ways but most often by going to the internet and the client’s website and using the snipping tool or snagit to grab a copy of the image and save to clipboard. Then open this table and paste. In the table you’ll simply receive the word ‘picture’ in the field.

Now open a report in design view and insert a bound object frame. In the control source of the bound object frame enter this: ‘=dlookup(“CompanyLogo1”,”zstblInformation”)

picture maintenance design view

picture maintenance preview

That’s it! When you want to change the graphic to something else, simply open zstblInformation and paste a new image in.

This entry was posted in Access Code Examples, Uncategorized and tagged access database graphic, access database image, access database logo. Bookmark the permalink.
← Calculating travel time between two locations
Finding data holes and filling them in Microsoft Access →
  • Archives

    • March 2020
    • July 2019
    • February 2019
    • January 2018
    • August 2017
    • July 2017
    • June 2017
    • April 2017
    • March 2017
    • December 2016
    • June 2014
    • December 2011
    • July 2011
    • April 2011
    • February 2011
    • January 2011
    • December 2010
    • November 2010
    • October 2010
    • September 2010
    • August 2010
    • July 2010
    • June 2010
    • August 2009
  • Meta

    • Log in
Data Control, LLC
Proudly powered by WordPress.