Disable button

Posted on 2011-10-29
Last Modified: 2012-06-22
Hi there,
How can I disable a button for 30 minutes once it has been clicked?
I want the user to be able to click a button ( It runs code, adds record etc), I then want to deactivate the button for a period of 30 minutes. Once the 30 minutes are up, I need to re-activate the button.
I presume it's with the timer event, but I have tried for the past three hours to no avail.
As always, your time and advice is much appreciated.
Question by:Stephen Byrom
    LVL 15

    Accepted Solution

    I would save the last time he pressed in work table and query this table once a minute
    LVL 1

    Author Closing Comment

    by:Stephen Byrom
    So simple, I didn't think of that.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Suggested Solutions

    Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
    A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
    Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now