I have been given a set of photos to use in a report. The 900 or so files of type *.bmp are all distorted and so I'd like to set the Size Mode under Format to stretch. However, all the jpeg files (about 200 of them)are fine, so I'd like to set the Size Mode to Zoom.
I'd like something like this:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
On Error Resume Next
If Right([PhotoPath],3) = "bmp" then
Me!MyImage.SizeMode= Stretch
Else
Me!MyImage.SizeMode= Zoom
End if
End Sub
This is clearly useless but I don't know what to do. Presumably I shouldn't even have my field name in a right function?
Yet again, thanks for any ideas
I'd like something like this:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
On Error Resume Next
If Right([PhotoPath],3) = "bmp" then
Me!MyImage.SizeMode= Stretch
Else
Me!MyImage.SizeMode= Zoom
End if
End Sub
This is clearly useless but I don't know what to do. Presumably I shouldn't even have my field name in a right function?
Yet again, thanks for any ideas