The way images display is managed in the Property Sheet.
Picture Properties:
The Property Sheet for the whole form or report has these properties for background image, like a texture or watermark.
All image and attachment controls have a Size Mode property in the Property Sheet.
There
are 3 modes: Clip, Stretch, Zoom.
![]() |
![]() |
![]() |
Clip Shows only what will fit in the control. |
Stretch Image is stretched or shrunk to fill the space, even if that deforms the image |
Zoom Image is enlarged or shrunk to fit into the space but the proportions remain the same. |
The control's Back Color shows when the image does not completely fill the control. If the Back Color is "Transparent", the form's background shows in the gaps. If the control's Border Style is Transparent, it is not obvious when the image does not fill the space. That is usually the best choice.
Recommendations:
Technically, you can copy and paste an image from another program to your form. BUT, the pasted image has two issues:
We will not be doing copy/paste for putting decorative images on a form.
![]() |
Step-by-Step: Form Images |
![]() |
What you will learn: | to backup database and compare size with original to create a new autoform to add a background image to view Help on a property to use Property Sheet to control image display to change an image with Property Sheet to format an Image control to edit Header table Access 2010, 2013, 2016: to remove layout table to add control to form header; format form header to compare file size after adding image and background |
Start with: , resource files, worldtravel-Lastname-Firstname.accdb from folder databases project4 as updated in the previous lesson
You now have two forms ready for use, plus some versions of those forms as you went along. Those forms are already formatted, so you will create a new form that will have a custom background and a form image.
Before adding any images or new objects, you want to see what the smallest size is for the database. Backing up the database is the easiest way to get that. Besides, you should be making backups regularly anyway.
Back up this database now so you will have a good copy to use if you need to start over. This works well while the database is small.
Access 2007: Office button > Manage > Back Up Database
Access 2010: File tab > Save and Publish > Back Up Database > Save As button
Access 2013, 2016: File tab > Save As > Save Database As > Back Up Database > Save As button
If necessary, navigate to your databases project4 folder on your Class disk.
Save with the name worldtravel-beforeimages-Lastname-Firstname.accdb instead of the default name with date..
The database closes. A copy is made with the name that you chose. The
original database opens.
You will see security warnings again if you saw them the first time you
opened the database.
Open a File Explorer/My Computer window and navigate to your Class disk to the databases project4 folder.
You should see at least two versions of the World Travel database, plus any other backup copies that you made and kept.
By the way, you may see a 1 KB file withe the extension .ldb. This is a temporary file that
appears only while the database is open.
Write down the sizes of these two files.
Your sizes are almost certainly different from
the illustration!
As you work, the database size increases. Compacting it reduces the size somewhat, sometimes a LOT. Attached files will also be compressed unless they are already compressed, like images in JPG format.
When you do a backup, the file is
automatically compacted as part of the process.
You can leave the File Explorer or My Computer window open.
Now you will create a new form and add a background and an image to it.
Switch back to Access.
The database worldtravel-Lastname-Firstname.accdb should still be open if you backed up the database.
Problem: The database worldtravel-beforeimages-Lastname-Firstname.accdb is open.
You did not do a backup of the database but something else, perhaps Save Database As.
Solution: Compact the database. Check the new file size. Then open the correct database, worldtravel-Lastname-Firstname.accdb.
Click the Form button on the Create ribbon tab to create an AutoForm for the table Projects.
The form opens in Layout View.
An AutoForm is a good start for a table with just a few fields like this one.
Remember that an autoform puts the controls in a table layout. This turns out to be important to know when you edit the Form Header.
The icon in the upper left corner is somewhat different in the versions of Access and the height of the Form Header is taller in Access 2007.
The new form has a default image and background color for the Form Header and a white background for the Detail section. You will add a background image. What do you think would make a good background image?
Finding
Help about properties:
Click in the box for the Picture property.
It has the value (none).
Press the F1 key.
A Help window opens with an article, Form.Picture Property (Access).
Problem: No article, just an error page in the browser
You did not click in the property's box but on the arrow or somewhere else.
Solution: Click in the property's box and try again.
Read this article, which explains what the
property is all about and what kind of objects have the property. Parts
are very technical but the first paragraph and the Remarks section of these Help articles usually have helpful
information.
Open the backgrounds folder, select the image wall.bmp and click on OK.
The image appears in the center of the form, under all of the
other controls. It may be hard to see in Design View.
The Property Sheet now shows the name of the image in the Picture
box and uses the default settings for the other Picture properties
- Embedded, Clip mode, Center alignment, and no tiling.
Change the Picture Tiling property to Yes and click in another property to
accept the change.
The background for the whole form changed to show the pattern,
including the Form Header and Footer (if you could see the footer).
When you are ready to continue...
The default image in the Form Header is just an icon for a form. Boring! A more appropriate image would be a company logo. You do want to think carefully, however, about how much space on the form and how much storage space in the database you want to spend on decorations.
Open the form Projects Form-background in Design View.
Click at the upper left of the header area on the form icon image.
The Property Sheet changes to show properties for this image control.
The Picture property shows (image) because this image is one of the icons included in Access in some versions.
Table in Header: The image and the title are in a table. The biggest clue is the icon at the top left of the image, . The second clue is the cell borders that show up when you click something in the table.
In the Picture property click the ellipsis button .
Navigate to your databases resource files and select the image worldtravel-logo.png.
Alternate method: If you are connected to the Internet, you can type in the URL for the image online:
http://www.jegsworks.com/Lessons/resources/databases%20resources/worldtravel-logo.png
You need to make some changes so that the image will show completely and at a reasonable size.
Click in another property or press the TAB key to accept the change.
Access 2007: Whoops! After resizing, the image is running underneath the Projects control.
Drag the handle in the middle of the left edge of the Projects control to the right, clear of the image.
Access 2010, 2013, 2016: Whoops! The current Size Mode is Clip and the Picture Alignment
value is Center. These property values force the image control to show
just the middle part of the image.
Change the Size Mode to Zoom.
Now the whole image shows in the smaller Image control.
It is clear that the image has transparent parts that let the background show through. Is that good?
The header automatically got taller when you resized the image.
Switch to Form View to see how this is working out.
Your form may have a different font for the title, Projects.
The Form Header needs more work. Headers normally have helpful info, like a company name as well as the name of the form. Those little tabs are not easy to read at a glance. The special controls in the form header do not behave quite like normal controls. They are in a table for positioning.
Switch to Form View.
The table expands to the width of the window. Did you expect that?
There are two issues. The centering does not look right since the form data controls did not move. The text formatting should not be applied to the form title, Projects.
To fix these issues, the stacked layout table must be removed and replaced with two ordinary label controls.
Now that you have added a background and an image, will there be any difference in the file size?
Compare the current sizes of these two files.
There should be a significant difference, but probably not the same values as in the illustration. Your work increased the file size.
Press the F5 key to make sure that the display refreshes.
Check the time stamp on the file to be sure the window is showing the current file size.
Your sizes are likely different from the illustrations. The current version might even be smaller than the 'before images' version!
Write down the file sizes
again.
You will need to compare the numbers at the end of the next lesson.
Did the World Travel database change sizes much after compacting? Probably.
How does its size now compare to the size before adding the form images? (Your file sizes are likely to be different from the illustrations!)