Harry Paraskeva
Registered User.
- Local time
- Today, 13:16
- Joined
- Sep 8, 2013
- Messages
- 67
I'm certain that the solution to this one is rather simple...but I just can't figure it out!
I have a form with a subform which need get printed as a PDF. There is a textbox on the subform which gets its backcolour property set based on the value entered in a combobox also on the subform. I have included appropriate VBA both in the After Update of the controlling combobox and the OnCurrent and OnLoad subform properties.
However, when I hit the Print button the PDF does not reflect the backcolour changes for each record in the subform, most likely because it ignores the OnCurrent code as it loops through the records of the subform. Is there any way to do this?
Thank you for any help!
I have a form with a subform which need get printed as a PDF. There is a textbox on the subform which gets its backcolour property set based on the value entered in a combobox also on the subform. I have included appropriate VBA both in the After Update of the controlling combobox and the OnCurrent and OnLoad subform properties.
Code:
If Me.Type = "A" Then
Me.When.BackColor = RGB(232, 139, 0)
ElseIf Me.Type = "B" Then
Me.When.BackColor = RGB(138, 146, 0)
ElseIf Me.Type = "C" Then
Me.When.BackColor = RGB(239, 172, 0)
End If
However, when I hit the Print button the PDF does not reflect the backcolour changes for each record in the subform, most likely because it ignores the OnCurrent code as it loops through the records of the subform. Is there any way to do this?
Thank you for any help!