Show / Hide

g28dman

Registered User.
Local time
Today, 07:20
Joined
Nov 4, 2005
Messages
84
*EDIT* - Mod - sorry for multiple threads, internet froze up, as I was posting.

I have a print dialog form with a combo box (cboCompanyName). When a choice is given (i.e Company 1) I would like Company 1's logo and mailing address to be visible, if the choice is Company 2 then Company 1's information would not be visible.

This is what I have been trying as code:

If Me.cboCompanyName = "Producer's Ag" Then
Me!imgPA.Visible = True
Me!PA1.Visible = True
Me!PA2.Visible = True
Me!PA3.Visible = True
Me!PA4.Visible = True
Me!PA5.Visible = True
Else
End If
Me!imgPA.Visible = False
Me!PA1.Visible = False
Me!PA2.Visible = False
Me!PA3.Visible = False
Me!PA4.Visible = False
Me!PA5.Visible = False
End Sub

I am basing this on the combo box, which is hidden in my report. Can anyone shed some light on this for me. I have gotten show/hide fields to work based upon check mark, but this is driving me crazy.

I will continue searching forum - all I have found thus far on this is about check marks.

Thanks for looking...
 
Last edited:

Users who are viewing this thread

Back
Top Bottom