Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

access database course - adding pictures to a

Forum home » Delegate support and help forum » Microsoft Access Training and help » access database course - Adding Pictures To A Form

access database course - Adding Pictures To A Form

ResolvedVersion Standard

Paul has attended:
Access Intermediate course
Access Advanced course

Adding Pictures To A Form

Hi All

I followed Carlos' instructions here: https://www.stl-training.co.uk/post-7126-adding-pictures-access-table.html about adding pictures to tables and then viewing them in forms, but when I've done mine, it has just come up as showing the file name where there should show a picture (eg 20031.jpg)

Can anyone help me here?

thanks

Paul

RE: Adding Pictures To A Form

Dear Paul

Thank you for attending our Access Intermediate and Advanced Course.

Let me tell you the main reason why you are encountering this problem and then I can give you three separate options to resolve the problem.

First of all I hope that you have set your Data type for the field to OLE.
After that you must have gone to the datasheet view and for individual record you must have chosen Insert> Object... and selected your image that you wanted.

Some technical information for you. Access usually supports only two file types namely .bpm (Bitmap picture or Device Independent Bitmap (.dib) files.

SOLUTION 1:
So the easiest solution would be to simply convert your jpg, gif or any other file to BMP files and that should resolve the problem straight away.

If you want to get more technical then please read further on.

SOLUTION 2:
If you have knowledge of VBA (Visual Basic for Application) then another solution can be to store your images outside the database and then use VBA to display them.


Office 2000 and 2002 comes with a program called Microsoft Photo Editor which provided the OLE server which in turn could display the gif and jpg pictures in your database but unfortunately in 2003 Photo editor has been replaced by Microsoft Picture Manager, which does not provide the needed OLE server for those types of files.

SOLUTION 3:
So another solution might be to reinstall the Photo Editor from previous version of Office which should be able to solve the picture problem.

I hope this helps!

If you need further assistance please do not hesitate to post it in the Forum Post

Many thanks

Kindest Regards

Rajeev Rawat

MOS Master Instructor 2000 and 2003

RE: Adding Pictures To A Form

Thanks for your answer Rajeev.

I'm quoting Carlos' reply to me here: "Try to keep the picture size down. (GIF and BMP don't work too well)"

...Which is one of the reasons I chose jpeg.

I'll convert the files to see if it works anyway

Thanks!

Paul

Access tip:

Create a custom Close button on a Form

By default, Forms that you create in Access have a full set of control buttons, that is, a title bar with Minimize, Maximize and Close buttons in the top right-hand corner and a Control Menu in the top left-hand corner.



Sometimes Access needs to follow certain procedures or events as users close a Form (such as automatically opening another Form perhaps). So it is often a good habit to create a custom Close button on a Form for everyone to use, rather than the standard closing cross.



To create a custom Close button:

1) In Form Design View, draw a Command Button onto the Form.

2) Use the Command Button Wizard to select Form Operations under Categories, and Close Form under Actions.

3) Choose Finish.



Access then creates the button and code to close the form for you. You can add any extra code that needs to run as the Form closes to the same Close procedure.



However, the creation of a custom Close button is pointless if the closing X in the top right-hand corner of the Form remains active. To make the closing X inactive, open the Form Properties box then on the Format tab set the Close Button setting to No. This will grey out the closing X leaving it visible, but inactive.



View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.