User changes Picture in Image Object, Won't work on client's machine

marlan

Registered User.
Local time
Tomorrow, 00:51
Joined
Jan 19, 2010
Messages
415
Hi all you experts (:
Here is some code I use replacing a picture in an Image object:
Code:
Public Sub SetPictureSettings(ByRef img As Image, Optional Path As String = "", Optional SizeMode As Integer = 0, Optional picAllign As Integer = 2)
    img.Picture = Path
    img.PictureAlignment = picAllign
    Select Case SizeMode
        Case 0
            img.SizeMode = acOLESizeClip
        Case 1
            img.SizeMode = acOLESizeStretch
        Case 2
            img.SizeMode = acOLESizeZoom
        Case Else
    End Select
End Sub
I use this code to allow users change Picture in Image Object. Works fine on my machine, will not display by the client :banghead:
it is an Acc 2003 format file, running fine in my Win 10. ia Acc2010.
Doesn't display in client's Win10, Acc2013 Environment.
What could it be? could it have something to do with the Environment?
Thanks in advance

Attached is a sample file
 

Attachments

Do you get any errors?, as I get this message (see attached pic) on form load, remove button and select button.

No missing references, and it compiles.
 

Attachments

  • pic.PNG
    pic.PNG
    15.2 KB · Views: 134
Same problem for me using Access 2010.
I replaced your image with one of my own but still get the errors
 
Your form is corrupt, create a new form, then copy all controls from frmCardLogo + all the code attached frmCardLogo.
 

Attachments

Thanks you all for your great replies!

Iv'e seen this error by the client, but everything seemed to run nicely: the data was updated in the DB, I'm not even sure it jumped every time I tested.

Your form is corrupt, create a new form, then copy all controls from frmCardLogo + all the code attached frmCardLogo.
Do you mean form1 you created doesn't error? the Pic was displayed in the report? That's sounds great!

BTW, It doesn't error on my machine.

It will be a few days before I'm by this client again, I'ii keep you posted.

TIA
 
Last edited:
..
Do you mean form1 you created doesn't error?
That is exactly what I mean!
Only you can open the form frmCardLogo without error, all others receive errors: your client, gasman, isladogs and myself included.
 

Users who are viewing this thread

Back
Top Bottom