If the user enters a stock number that has been reported before (i.e., it's already in the database), I want to display a textbox Alert. With the following code, I see the Alert many times as I navigate through records. But, I only want the Alert to display when the user is entering a new record. If I navigate to that record later on, I don't want to see the Alert anymore. I don't know how to do this.
If IsNull(Me.Alert) Then
Me.Alert.Visible = False
Else
Me.Alert.Visible = True
End If
If IsNull(Me.Alert) Then
Me.Alert.Visible = False
Else
Me.Alert.Visible = True
End If