[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 256
  • Last Modified:

Adding an OLE bounded field to the Contact form in Outlook 2000

Hi all!
A user is able to customize any form in oulook. He can add, remove controls as he wishes. He can also add other OCX controls to the tool box.

That toolbox contains an Image control.

I would like to add a picture of my contact in  the form using the Image control or any other OCX control.

Unfortunately, when it's time to define what field the control will be bound to, there is no choice but to use text, numerical, boolean or date/time type field.

This is crucial for me because if I cannot bind the control to a field that cant host images, I end up with the same picture for everyone.

Does anyone know how to circumvent that limitation? Did I miss something?

PS: I know I can do this easily in Access. But I really need to do this in outlook 2000.

Thanx in advance

T3MPoR3L
0
temporel
Asked:
temporel
1 Solution
 
SMosherCommented:
Don't bind the control to a field. Use the built-in User 1 text field to store the path to the picture for each contact. Add code to the Item_Open event handler on the form to set an objCtrl object for the Image control. Then add this code to set the picture:

objCtrl.Picture = LoadPicture(Item.User1)

You can use any text field, of course, not just User1, adjusting the code accordingly.
0
 
temporelAuthor Commented:
Thanx Dude!
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now