Using MS Access/Insert an image

Advertisement


Question
Dear Sir,
I am creating a form and I need the end user to insert the logo of the company while filling the form.
What type of field do I need to create in the table design that allows me to click and insert the logo in .jpg format ?

Thank you in advance.
Maya

Answer
The way I would do this is to have a one record Company info table. I would use a text field in that table to store the path to the logo. I would have an unbound image control on your forms. In the On Load event of your forms, I would use code like:

Me.imgCoLogo.Picture = DLookup("[LogoPath]",tblCoInfo")

I would have a form bound to tblCoInfo, that the user fills out first time they use the app.

Hope this helps,
Scott<>
Blog: http://scottgem.wordpress.com
Website: http://www.diamondassoc.com
Microsoft Access MVP 2007
Author: Microsoft Office Access 2007 VBA

Using MS Access

All Answers


Answers by Expert:


Ask Experts

Volunteer


Scottgem

Expertise

I can answer almost all types of questions relating to Microsoft Access usage and application design. My strengths are database and interface design.

Experience

I've been designing databases for over 25 years working with dBase, FoxPro, Approach and Access.

Organizations
Author of Microsoft Office Access 2007 VBA
Techncial Editor for Special Edition Using Microsoft Access 2007 and Access 2007 Forms, Reports & Queries From Que Publishing

Education/Credentials
Brooklyn College BA

©2016 About.com. All rights reserved.