473,398 Members | 2,393 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,398 software developers and data experts.

How to create a timer/stopwatch with different codes?

1
I have agents that use a phone that they enter an aux code (1-9) which lets me know exactly what they are doing at the moment. Being that they are using a phone it's possible for them to select the wrong number and they wouldn't know which aux state that they are in because the phone doesn't show them. I wanted to create almost the same thing in access but do not know where to begin. I would like to provide them which buttons to click and the timer starts when they log in and allows them to change what state they are in throughout the day. I will like the total time to add together at the end of the day and how much elapsed in each aux state as well. Is this even possible?

I'm really new to access and just learing about coding.
Aug 29 '12 #1
4 2740
twinnyfo
3,653 Expert Mod 2GB
JDav89,

Welcome to Bytes!

My first thought is that this is very possible and shouldn't be "too" difficult for a beginner. How much experience do you have with Access? Of course, this would require quite a bit of coding, so you should be prepared.

Do some research on databases and what they can do and how you should approach it. I can't tell you how good these over views are, but a place to start may be here:

Database Lessons

Your requirements don't sound terribly tricky, but it all depends on how tricky you will need it to be. If it is simply a work time computation app, then, it might be pretty simply, in which you just have the user begin the db at the start of the day, selecting whichever state they are in. The db would calculate time elapsed based when they click the buttons and could compile a report at the end of the day/week/month, by user.

Have you tried to p[ut anything together yet? If so, most on this forum are glad to guide you through some of the process, although we won't do the work for you.

Looking forword to working with you.
Aug 29 '12 #2
zmbd
5,501 Expert Mod 4TB
Although I am sure the site Twinnyfo suggested is a good one.

I suggest that first time DB developers start with something along this line first: A Tutorial for Access This site starts from the basic thought process for design and then covers the basic table building concepts etc...

Once you have that down... then start with the coding.
Something that I've learned from Rabbit here, is that I rely way too much on the VBA to get my results!

Oh, and yes, this is possible in Access.
One thought would be along the lines of:
Build your tables
Build your forms
The buttons could save the time clicked into a record along with user information and state
The queries can build the time difference.

-z
Aug 29 '12 #3
TheSmileyCoder
2,322 Expert Mod 2GB
In theory these things sound quite simple, but in reality they are usually a bit more complex, since you (probably) need to take into account such issues as users forgetting to clock out (This could be partially fixed by code running when the database closes, allthough this doesn't work if the user does a Standby on his PC.

I think the simplest approach I can imagine (well I spend a whole 30 seconds thinking about it) would be to have a login form (Or autologin based on username used on computer). After login, detect if this is the first entry for the day, and if so create a new record with a combined primary key consisting of Date and UserID. Then open a Form and navigate to the record.

Add a combobox (or buttons) in which the user selects his "state", and through code you can now add a new related record with foreign key Date and userID and its own start/stop time.
When user selects a new state simply add a new sub-record for that day/userID combination. The states for the day could be shown in a subform, and if required could be left open for manual editing.
Aug 29 '12 #4
twinnyfo
3,653 Expert Mod 2GB
Smiley brings up some key points in his first paragraph, but if the users are diligent about logging in, using the forms and logging out and then shutting down, things should work ok. But, sometimes I find it easier to train monkeys than get users to do what they are supposed to do in a database...
Aug 29 '12 #5

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

Similar topics

4
by: William Bub | last post by:
Is there an accurate way to create a "stopwatch" good to 1/10 of a second? I'm not sure if I should use the timer control, or some way to access the computer timer. I found the following site...
6
by: luckyjameel | last post by:
Hi Guys Hope this message shall find u all in gr8 moods. As i was developing a Application for Online Exam and i am in need of a way to maintain the time for the logged in user. So Can any one...
3
by: jam | last post by:
Dear all, I am wrtiing a console application and doing some test on timer, the below is my sample code I got from some site, but I cannot make it work... Error is 'System.Timers.Timer' does not...
1
by: Dirk Hagemann | last post by:
Hi! I'd like to implement a countdown timer on a webite. It should show the months, days, hours, minutes and seconds until a given date and time. So far it's not really difficult, but this...
5
by: not_a_commie | last post by:
So I have a motherboard with multiple CPU sockets. It seems that if I create a StopWatch on one thread and then call the Elapsed member from a different thread that sometimes I get a tick count...
3
by: Jukka K. Korpela | last post by:
Some time ago in this group, someone suggested that we should develop a "different" user style sheet to demonstrate what a user style sheet or a browser style sheet _could_ do. I guess the idea was...
1
by: fightclub777 | last post by:
Hi, I've done some reasearch to be able to find the best way of acheiving this, but have been unlucky so far. What I'm trying to do is create a stopwatch on a .net page, whereby when a user clicks...
8
by: Firecore | last post by:
Hello. I am making a Stopwatch program in C. Can anyone help? Is it possible to make a timer(stopwatch) function in C?
5
by: junjun | last post by:
Hi, I need some help with this question. I am writing a main functions, with MACRO and global variables, and lots of supporting functions a(), b(), c(),........z() that are called by main function...
4
by: TwoBit | last post by:
Hello Bytes, I am very new at using Microsoft Access and have just recently implicated it in recording productivity on outbound calls for my team. My team is in charge of making outbound calls...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.