MHutcheson
Registered User.
- Local time
- Today, 19:41
- Joined
- Sep 3, 2013
- Messages
- 23
Hello,
I am using Access 2010 32-bit and I have placed an embedded image (Image146) in the detail section of a report, and then set the Visible property to No.
There is a Text box (field1) also in the detail section. When the value of the Textbox = "ABC" I want the image to display, otherwise stay invisible.
So far I have tried the following to no avail while displaying in Print Preview:
1. Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.field1.Value = "TN11" Then
Me.Image146.Visible = True
Else
Me.Image146.Visible = False
End If
End Sub
2. Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If Me.field1.Value = "TN11" Then
Me.Image146.Visible = True
Else
Me.Image146.Visible = False
End If
End Sub
3. Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.Image146.Visible = (Me.field1.Value = "TN11")
End Sub
The image is not displaying at all - any ideas?
Regards,
Michael
I am using Access 2010 32-bit and I have placed an embedded image (Image146) in the detail section of a report, and then set the Visible property to No.
There is a Text box (field1) also in the detail section. When the value of the Textbox = "ABC" I want the image to display, otherwise stay invisible.
So far I have tried the following to no avail while displaying in Print Preview:
1. Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.field1.Value = "TN11" Then
Me.Image146.Visible = True
Else
Me.Image146.Visible = False
End If
End Sub
2. Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If Me.field1.Value = "TN11" Then
Me.Image146.Visible = True
Else
Me.Image146.Visible = False
End If
End Sub
3. Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.Image146.Visible = (Me.field1.Value = "TN11")
End Sub
The image is not displaying at all - any ideas?
Regards,
Michael