Hi,
I'm searching several hours on this and I'm getting desperate.
I understand that their are several ways to work with pictures and comboboxes. Working with an OLE Picture is not prefered. But I only need to add 5 little signatures. Previous attempts, like trying to connect with my SharePoint site and our server didn't work. So I have only one option left which is to work with an OLE object. Because the pictures (signatures) are just arround 15kb, I think it will not influence my database a lot.
Because I only have about 2 weeks experience working with Access, I can't enable to show the signature (Picture in jpg or bmp) when a person is selected in a combobox. I compared the code with several other posts but all do it very differently.
I have table with 3 fields: Id, Inspector and Signature
Signature is an OLE field. In this field for each inspector I paste his Signature.
In the form I'm trying to show his Signature via a combobox.
But I can't find out how I have to make the connection between the Picture field and the table were the picture is stored. And this in combination with a combobox.
Here is my code were I'm struggling with:
Option Compare Database
Option Explicit
Private Sub Inspector_AfterUpdate()
Select Case Inspector.Value
Case "Inspectors_Name"
Me.Signature.Picture = Me.Inspector.Column(2)
Case "Colin Jean-Philippe"
Me.Signature.Picture = Me.Inspector.Column(2)
End Select
End Sub
Thanks in advance, Otto
I'm searching several hours on this and I'm getting desperate.
I understand that their are several ways to work with pictures and comboboxes. Working with an OLE Picture is not prefered. But I only need to add 5 little signatures. Previous attempts, like trying to connect with my SharePoint site and our server didn't work. So I have only one option left which is to work with an OLE object. Because the pictures (signatures) are just arround 15kb, I think it will not influence my database a lot.
Because I only have about 2 weeks experience working with Access, I can't enable to show the signature (Picture in jpg or bmp) when a person is selected in a combobox. I compared the code with several other posts but all do it very differently.
I have table with 3 fields: Id, Inspector and Signature
Signature is an OLE field. In this field for each inspector I paste his Signature.
In the form I'm trying to show his Signature via a combobox.
But I can't find out how I have to make the connection between the Picture field and the table were the picture is stored. And this in combination with a combobox.
Here is my code were I'm struggling with:
Option Compare Database
Option Explicit
Private Sub Inspector_AfterUpdate()
Select Case Inspector.Value
Case "Inspectors_Name"
Me.Signature.Picture = Me.Inspector.Column(2)
Case "Colin Jean-Philippe"
Me.Signature.Picture = Me.Inspector.Column(2)
End Select
End Sub
Thanks in advance, Otto