We have signatures that need to show on a report. Each persons signature is a jpg. When I added the image control I was able to load one signature which showed up just fine. It was embedded. We need to be able to change the signature as each line in the sub form changes to that person, In other words the sub report will have a bunch of signatures on it different for each person or record on that subreport. I want to open the signature jpg files and load it into the image control when the report is opened.
This code worked OK on a Form which I have used a lot of times. But it gives an error on this subreport.
Error # 2220 Microsoft Office Access can’t open the file ‘2097487935’
Whatever that means, The file name is SignatureImage = “Fred Flintstone.jpg”
The image control Picture Type is Linked now.
This code is in the subreports Page Event.
If I change the code to this, I don’t get an error but there is nothing showing in the image either.
DougP
< I Built one
This code worked OK on a Form which I have used a lot of times. But it gives an error on this subreport.
Error # 2220 Microsoft Office Access can’t open the file ‘2097487935’
Whatever that means, The file name is SignatureImage = “Fred Flintstone.jpg”
The image control Picture Type is Linked now.
This code is in the subreports Page Event.
Code:
' load image into image control on report
SignatureFileName = "F:\Signatures\" & SignatureImage
Me.Signature.Picture = LoadPicture(SignatureFileName)
If I change the code to this, I don’t get an error but there is nothing showing in the image either.
Code:
Me.Signature.Picture = SignatureFileName
DougP
< I Built one