P
pow67
I have the following fields in my Access database:
[PrintBold] =Y/N field
[DNDAddress] = Y/N field (Do not display address)
[Name] = Text field
[Address] = Text field
Selected records are printed in bold based on the following code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If [PrintBold] = True then
Me![Name].FontWeight = 700
Me![Address].FontWeight = 700
Else
Me![Name].FontWeight = 400
Me![Address].FontWeight = 400
End If
End Sub
There are some records, bold and non bold, where I would like to print
[Name] but not show [Address]. How do I incorporate a second if
condition into my code:
If [DNDAddress] = True then
Me![Address].Visible = True
Else
Me![Address].Visible = False
End If
I thought I found the answer using "Elseif" but I could not get it to
work.
Thanks in advance.
CW
[PrintBold] =Y/N field
[DNDAddress] = Y/N field (Do not display address)
[Name] = Text field
[Address] = Text field
Selected records are printed in bold based on the following code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If [PrintBold] = True then
Me![Name].FontWeight = 700
Me![Address].FontWeight = 700
Else
Me![Name].FontWeight = 400
Me![Address].FontWeight = 400
End If
End Sub
There are some records, bold and non bold, where I would like to print
[Name] but not show [Address]. How do I incorporate a second if
condition into my code:
If [DNDAddress] = True then
Me![Address].Visible = True
Else
Me![Address].Visible = False
End If
I thought I found the answer using "Elseif" but I could not get it to
work.
Thanks in advance.
CW