I have been working on this for a while now and cannot seem to figure it out. I have a home page in Microsoft Access with numerous embed subforms. One of these subforms is a recent activity feed similar to what you might see on most social media platforms. It is a tabbed subfrom with a "Recent Events" and a "Notes" section. I am trying to have a "Notification Bubble" appear when an item in that subform has been added in the last 24 hours, and THEN disappear when the user clicks on the corresponding tab.
The "Notification Bubble" is a picture called "recentalert". Currently, the bubble only appears when the 24 hour criteria is met but I cannot get it to disappear once the corresponding tab is clicked. I have tried numerous formats and different events with no luck. My code is below. Please help!
Private Sub Recent_Click()
If Me.recentalert = True Then
Me. recentalert = False
End If
End Sub
Private Sub Form_Load
If [Forms]![Navigation Form]!{NavigationSub]![Activity Feed]![RAevents_frm].[Form].[today_date] >= Date -1 Then
Me.recentalert.visible = True
End If
End Sub