473,382 Members | 1,583 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How do you create a timer button that changes colour

I am working on a 2007 copy of access database. I need to add a button which when clicked turns green for 59 minutes then turns red on 60 minutes. This button should stay red until clicked again when it restarts the countdown. There will also need a way to turn the button back to grey.
This will be used to track responders welfare when operating in adverse weather conditions and will be used to prompt a phone call.

Would appreciate any help. My knowledge of access is small and VBA non existent.
Dec 3 '18 #1
1 870
NeoPa
32,556 Expert Mod 16PB
You will need VBA. You'll need to code an Event Procedure on the form's timer.

Why don't you start by expressing what you think your logic should be in pseudo-code (ordinary English).
Dec 4 '18 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Keith Smith | last post by:
What am I missing? I am trying to dynamically create a button... Button myButton = new Button(); myButton.Name="ButtonX";
4
by: Tim Wallace | last post by:
I have an ascx file in which I want to sometimes create an asp:button control based on a given value. Nothing I've tried has worked. How can I accomplish this task? Tim
4
by: Nathan Pinno | last post by:
Hey all, Is there a way to create a button in either pygame or livewires, that is able to be clicked and when clicked sends a command to restart the program? Thanks, Nathan Pinno -- For...
4
by: Adam - Regus | last post by:
I'm trying to create a button that prints 2 copies of a form. Using the wizard, I created a button that prints one automatically, using the following code: End Sub Private Sub...
3
by: oozy | last post by:
Hi, I'm currently using Page.Form.DefaultButton = ChangePassword1.FindControl("xx").UniqueID to set my DefaultButtons in a form that has multiple wizards(each in it's own panel). I can...
2
by: peterv6 | last post by:
I want to create a button on my page that when clicked, will take me to my homepage. Using just a link on the page works <a href="index.html">Main Page</a , but I want to use a button. ...
3
by: nicolenwn | last post by:
Hello all, Many thanks in advance again for your expertise. I need help in Microsoft Access VBA once again ): I'd like to inquire if it is indeed possible to create a button that when it is...
1
by: swati31k | last post by:
Hi, I have created few forms in MS Access 2007, now I want to create a button which will OnClick enable the users to create an .xlsx file for the current form or in other words, when the user...
0
by: gamer2d | last post by:
How can I create a TextureRegion into button in libgdx-android(java)? I found a simailar solution here: http://stackoverflow.com/questions/21488311/libgdx-how-to-create-a-button problem is that...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.