问题描述
我有一个访问表单,该表单使用Dcount,Dmax,Dmin,Dcount函数显示有关不同查询中的记录数的大量信息.此计数显示在选定的日期范围内.所以我有一个开始日期和一个结束日期文本框.当我输入开始日期和结束日期时,信息不会自动显示,但是当我使用快速访问工具栏中的全部刷新"按钮时,它会起作用.
I have an access form which displays lot of information regarding number of records in different queries using Dcount, Dmax, Dmin, Dcount functions. This count is displayed within a selected Date Range. So I have a start date and an end date text boxes. When I enter the start date and end date the info is not displayed automatically but when I use Refresh all button from the Quick access tool bar it works.
因此,我使用了Macro的Refresh方法创建了一个按钮.尽管当我使用此按钮时,它给了我一个错误
Therefore I created a button using Refresh method from the Macro. Although when I use this button it gives me an error
The command or action 'Refresh' isn't available now
我该如何解决这个问题?
How can I solve this problem?
推荐答案
您是否尝试过使用代码生成器方法?
Have you tried using the Code Builder method?
Private Sub RefreshCmd1_Click() Me.RefreshEnd Sub
Private Sub RefreshCmd1_Click() Me.RefreshEnd Sub
这篇关于刷新访问表单上的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!