Refresh button on an Access form

无人久伴 提交于 2020-02-08 04:19:04

问题


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.

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?


回答1:


Have you tried using the Code Builder method?

Private Sub RefreshCmd1_Click() Me.Refresh End Sub



来源:https://stackoverflow.com/questions/40586631/refresh-button-on-an-access-form

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!