ms-access - 在 MS Access 中创建“通知气泡”
问题描述
我已经为此工作了一段时间,似乎无法弄清楚。我在 Microsoft Access 中有一个带有许多嵌入子表单的主页。其中一个子表单是最近的活动提要,类似于您在大多数社交媒体平台上看到的内容。它是一个带有“最近事件”和“注释”部分的选项卡式子目录。我试图在过去 24 小时内添加该子表单中的项目时出现“通知气泡”,然后在用户单击相应选项卡时消失。
“通知气泡”是一张名为“recentalert”的图片。目前,气泡仅在满足 24 小时标准时出现,但单击相应选项卡后我无法使其消失。我尝试了许多格式和不同的事件,但没有运气。我的代码如下。请帮忙!
Private Sub Recent_Click()
If Me.recentalert.Visible = True Then
Me.recentalert.Visible = 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
解决方案
Try right clicking the control where you want the On Click event to fire and click on Build Event. This should take you to the Recent_Click sub in your module, if not, your control isn't properly linked and I would suggest deleting the sub in your module, using the right click method above, click on Code Builder, then retyping in your code.
推荐阅读
- kubernetes - 使用 Katacoda 跟踪 Kubernetes
- c# - Angular7 - .NET Core v2 抛出 http 415(不支持的媒体类型)
- 64-bit - 我无法在window 7 64位平台上写入并口的控制寄存器,为什么?
- asp.net-core - 使用 IdentityServer 的 MVC 客户端中的 ASP.NET Identity 导致循环
- android - 当我单击 Cardview 时,如何将其保持在相同颜色的 ON 状态,直到单击 OFF?
- c# - 将 putty(或 plink)连接到 DaHaus
- c - 我在 Leetcode No 1(Two Sum) 上遇到运行时错误
- php - 使用 php 显示自己和朋友的帖子
- r - 单行数据的 PLS-DA 预测返回多个预测
- c# - 如何在 AJAX 成功中访问 viewbag 值?