【问题标题】:How to get a table to refresh in a Tab Control如何在选项卡控件中刷新表格
【发布时间】:2013-06-06 08:20:56
【问题描述】:

I have a tabbed control with two tabs, one called add and the other called delete, I have a table in a form on the delete tab showing all the added records but how do I get this table to refresh when the tab is选择。

我尝试在单击删除选项卡时添加运行命令刷新宏。我也试过 me.labourform.requery 并且这些都没有刷新表格。

任何帮助将不胜感激!

【问题讨论】:

    标签: vba ms-access ms-access-2007


    【解决方案1】:

    尝试使用Change 事件,而不是使用Click 事件。例如:

    Private Sub TabCtl1_Change()
        Select Case TabCtl1.Pages.Item(TabCtl1.Value).name
    
        Case "delete"
            Me.labourform.Requery
        Case Else
        End Select
    End Sub
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-09-27
      相关资源
      最近更新 更多