Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically position an image on a report

Status
Not open for further replies.

jaaret

Instructor
Jun 19, 2002
171
My goal is to position and size a logo image on a report depending on which logo is selected from a combo box on a form. I've tried this code with:
Private Sub Report_Open
Private Sub Report_Format

What event should I have this code under?

Logo = Form_frmCSS.cboLogo

Select Case Logo
Case Logo = "CompanyName1"
Me.imgLogo.Left = 8928
Me.imgLogo.Top = 0
Me.imgLogo.Width = 5580
Me.imgLogo.Height = 1680

Case Logo = "CompanyName2"
Me.imgLogo.Left = 10320
Me.imgLogo.Top = 480
Me.imgLogo.Width = 4200
Me.imgLogo.Height = 8333
End Select

Thanks,
Jaaret
 
D'oh! CompanyName1 was spelled incorrectly.

Jaaret
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top