P
pow67
[BusName], one field in my report, prints in a font which is bold,
larger size and colored if certain criteria are met. Otherwise [BusName]
prints using the default font.
My general declaration statement is:
Option Compare Database
Public Const BoldColor = vbBlue
Public Const BoldSize = 14
Public Const BoldWeight = True
Option Explicit
The code in my class module is:
If (Me![BOLD] Or Me![PLUS]) = True Then
Me![EXTRA].Visible = True
Me![BusName].ForeColor = BoldColor
Me![BusName].FontSize = BoldSize
Me![BusName].FontBold = BoldWeight
Else:
Me![EXTRA].Visible = False
Me![BusName].ForeColor = vbBlack
Me![BusName].FontSize = 10
Me![BusName].FontBold = False
End If
Is it possible to combine the attributes in the general declaration into
one constant such as BoldPrint and then in the class module I could use
something like:
If (Me![BOLD] Or Me![PLUS]) = True Then
Me![EXTRA].Visible = True
Me![BusName] = BoldPrint
Thanks in advance.
CW
larger size and colored if certain criteria are met. Otherwise [BusName]
prints using the default font.
My general declaration statement is:
Option Compare Database
Public Const BoldColor = vbBlue
Public Const BoldSize = 14
Public Const BoldWeight = True
Option Explicit
The code in my class module is:
If (Me![BOLD] Or Me![PLUS]) = True Then
Me![EXTRA].Visible = True
Me![BusName].ForeColor = BoldColor
Me![BusName].FontSize = BoldSize
Me![BusName].FontBold = BoldWeight
Else:
Me![EXTRA].Visible = False
Me![BusName].ForeColor = vbBlack
Me![BusName].FontSize = 10
Me![BusName].FontBold = False
End If
Is it possible to combine the attributes in the general declaration into
one constant such as BoldPrint and then in the class module I could use
something like:
If (Me![BOLD] Or Me![PLUS]) = True Then
Me![EXTRA].Visible = True
Me![BusName] = BoldPrint
Thanks in advance.
CW