D
Dennis
Hi,
I’m on Windows XP running Office 2003 Access and my application runs on
small network.
I am displaying two different jpg images (logos) in the top left corner of a
form’s windows. The customer table is shared by two sister companies (for a
whole bunch of reasons we want to keep the data together). When a customer
is displayed on the screen, I display the appropriate logo in the top left
corner. I have no problem doing this.
The logos are small images, 3 or 4k. Is there a way I can load the two jpgs
into two different variables during the form’s Load event and then set the
image equal to one of the two variables when the customer changes? This
would prevent me having to read the image from disk over the network each
time.
Here is my current code:
Select Case strCoNo
Case cstrPcDoc
ImgLogo.Picture = cstrLogoPath & cstrPcDocLogo
Case cstrITGrp
ImgLogo.Picture = cstrLogoPath & cstrITGrpLogo
Case Else
ImgLogo.Picture = cstrLogoPath & cstrPcDocLogo
End Select
The variables cstrLogoPath, cstrPcDocLogo are constants set at the top of
the VB code.
Once I get this working, I’ll put in some logic to remember that last logo
so if it does not change, then I will not change the image.
I’m on Windows XP running Office 2003 Access and my application runs on
small network.
I am displaying two different jpg images (logos) in the top left corner of a
form’s windows. The customer table is shared by two sister companies (for a
whole bunch of reasons we want to keep the data together). When a customer
is displayed on the screen, I display the appropriate logo in the top left
corner. I have no problem doing this.
The logos are small images, 3 or 4k. Is there a way I can load the two jpgs
into two different variables during the form’s Load event and then set the
image equal to one of the two variables when the customer changes? This
would prevent me having to read the image from disk over the network each
time.
Here is my current code:
Select Case strCoNo
Case cstrPcDoc
ImgLogo.Picture = cstrLogoPath & cstrPcDocLogo
Case cstrITGrp
ImgLogo.Picture = cstrLogoPath & cstrITGrpLogo
Case Else
ImgLogo.Picture = cstrLogoPath & cstrPcDocLogo
End Select
The variables cstrLogoPath, cstrPcDocLogo are constants set at the top of
the VB code.
Once I get this working, I’ll put in some logic to remember that last logo
so if it does not change, then I will not change the image.