D
dee
I need to change formatting on a single field in the current record.
My code works, but it formats every record.
My form is a continuous form called "FmMailed".
My code below:
Private Sub First_Name_DblClick(Cancel As Integer)
If Me.Flag1 = 1 Then
Me.Flag1 = Null
Me.First_Name.FontBold = False
Me.First_Name.BackColor = vbWhite
Me.First_Name.ForeColor = vbBlack
Me.Requery
Else
Me.Flag1 = 1
Me.First_Name.FontBold = True
Me.First_Name.BackColor = vbBlue
Me.First_Name.ForeColor = vbWhite
Me.Requery
End If
End Sub
I am not a programmer and would very much appreciate a correction to
my code.
My code works, but it formats every record.
My form is a continuous form called "FmMailed".
My code below:
Private Sub First_Name_DblClick(Cancel As Integer)
If Me.Flag1 = 1 Then
Me.Flag1 = Null
Me.First_Name.FontBold = False
Me.First_Name.BackColor = vbWhite
Me.First_Name.ForeColor = vbBlack
Me.Requery
Else
Me.Flag1 = 1
Me.First_Name.FontBold = True
Me.First_Name.BackColor = vbBlue
Me.First_Name.ForeColor = vbWhite
Me.Requery
End If
End Sub
I am not a programmer and would very much appreciate a correction to
my code.