Private Sub PN_AfterUpdate()
BoxMark = DLookup("BoxMark", "tblBook", "PN='" & Me.PN & "'")
If Me.BoxMark = A1 Then
Me.LabelA1.BackColor = vbYellow '更改标签背景色黄色,以达到高亮显示
ElseIf Me.BoxMark = A2 Then
Me.LabelA2.BackColor = vbYellow
ElseIf Me.BoxMark = A3 Then
Me.LabelA3.BackColor = vbYellow
Else
Me.LabelA1.BackStyle = 0
End If
End Sub