stephendeloach,
"Aircode" means that the code is not actual, but just a reference to the
concept of what your actual code should do.
' Hide the Address fields (Visible = False)
' Show the Logo (Normally invisible... Visible = True
are two comments that describe what your code should do... not the actual
code itself.
Your form, with the CompanyFrom value should be open when you run the
report.
The reason your trying to create this code is to not have 2 reports (one
with logo and one without)
Copy and paste the logo onto report1, and make it invisible... and your
CompanyAddress field/s visible.
Try this (use your own names, but in this code, I'll assume your fields on
the report are... CompanyAddress and CompanyLogo)
Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)
If Forms!DrillingInvoice!CompanyFrom = "TSWS, Inc" Then
CompanyAddress.Visible = False
CompanyLogo.Visible = True
End If
End Sub
Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)
If Forms!DrillingInvoice!CompanyFrom = "TSWS, Inc" Then
[quoted text clipped - 25 lines]