473,804 Members | 2,122 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Clocking out database help

i currently have a database for tracking members arrival and exit
times. however due to new demands my training centre are wanting a
barcode system setup where all the user has to do is use a wedge
scanner and not need to touch the mouse or keyboard. i can
successfully clock in but i am havin difficulties when it comes to
clocking out i am no good with VBA code but if anyone could help me
with if true statements or other ways to produce this outcome. much
appreciated.

Feb 12 '07 #1
5 2107
Hi There,

I am going to assume (perhaps dangerously) that if you can "clock in"
people to the site, then you can successfully read the data that is
coming from the scanner. The way that "clock in / clock out" stuff is
typically handled in security or time and attendance type applications
is to have a log of the activities with maybe a username / number and
the time of the event, and the in or out status.

The way the in / out status is handled is to run a separate table that
holds the users unique ID in it. When the user "clocks in" their ID is
added to this second table as well as the event being added to the
log, then when the user ID is entered again (in this case by the
scanner reading the barcode) the in/out table is checked to see if the
user ID is already there, if it is then the user must be "clocking
out", and if it isnt then the user must be "clocking in". If the user
is clocking out then I would suggest simply deleting the ID from the
in/out table and making an entry in the log (if you need to log these
things).

It would be easiest to do this with a little VBA and a simple IF
statement. Psuedo code below:

DataVar = scanner data read
if DataVar in TableClockInOut then
delete DataVar from TableClockInOut
else
add DataVar into TableClockInOut
end if

This is of course not real code, but the logic is probably what you
need. If you can post what you are using to generate the "clock in"
other readers or I may be able to help you write what is needed to
finish the job properly.

I hope that this helps

Cheers

The Frog

Feb 12 '07 #2
And of course now you have to work out procedurally what you are going
to do about a missed punch.

If the persons forgets to clock out, then you interpret his next days
in as a Out

Then again if they forget the in punch then you consider their out
punch as the in punch.

Just thought I would add some wrenches to your thinking process.

Try to avoid doing what our clock system sometimes does: It will take
my 4 daily punches (in, then out for lunch, then in from lunch, then
leaving work) and simply jumbles them around randomly. I think someone
does it to force my manager to think in circles.

Good Luck.

Ron

Feb 12 '07 #3

"Ron2006" <ro******@hotma il.comwrote in message
news:11******** **************@ m58g2000cwm.goo glegroups.com.. .
And of course now you have to work out procedurally what you are going
to do about a missed punch.

If the persons forgets to clock out, then you interpret his next days
in as a Out

Then again if they forget the in punch then you consider their out
punch as the in punch.

Just thought I would add some wrenches to your thinking process.

Try to avoid doing what our clock system sometimes does: It will take
my 4 daily punches (in, then out for lunch, then in from lunch, then
leaving work) and simply jumbles them around randomly. I think someone
does it to force my manager to think in circles.

Good Luck.

Ron
Limit the time allowed between clock-in and clock-out to say 18 hours.
Employee clock-in at 6:00 AM and the next clock punch is at 5:59 AM on the
next day, assume this is also a clock-in with no clock-out for the previous
day.
Feb 13 '07 #4
On Feb 13, 8:13 am, "paii, Ron" <p...@packairin c.comwrote:
"Ron2006" <ronne...@hotma il.comwrote in message

news:11******** **************@ m58g2000cwm.goo glegroups.com.. .


And of course now you have to work out procedurally what you are going
to do about a missed punch.
If the persons forgets to clock out, then you interpret his next days
in as a Out
Then again if they forget the in punch then you consider their out
punch as the in punch.
Just thought I would add some wrenches to your thinking process.
Try to avoid doing what our clock system sometimes does: It will take
my 4 daily punches (in, then out for lunch, then in from lunch, then
leaving work) and simply jumbles them around randomly. I think someone
does it to force my manager to think in circles.
Good Luck.
Ron

Limit the time allowed between clock-in and clock-out to say 18 hours.
Employee clock-in at 6:00 AM and the next clock punch is at 5:59 AM on the
next day, assume this is also a clock-in with no clock-out for the previous
day.- Hide quoted text -

- Show quoted text -

madgunnercurz,
The reply is one way, Just don't forget to address the problem,
because it WILL happen. (Maybe it is a power outage at the end of the
day, so NO ONE can log out. - hmmmm)

Ron

Feb 13 '07 #5
How you handle missing clock-out is up to you, I create a clock-out with the
same date and time as the clock-in.

"Ron2006" <ro******@hotma il.comwrote in message
news:11******** **************@ m58g2000cwm.goo glegroups.com.. .
On Feb 13, 8:13 am, "paii, Ron" <p...@packairin c.comwrote:
"Ron2006" <ronne...@hotma il.comwrote in message

news:11******** **************@ m58g2000cwm.goo glegroups.com.. .


And of course now you have to work out procedurally what you are going
to do about a missed punch.
If the persons forgets to clock out, then you interpret his next days
in as a Out
Then again if they forget the in punch then you consider their out
punch as the in punch.
Just thought I would add some wrenches to your thinking process.
Try to avoid doing what our clock system sometimes does: It will take
my 4 daily punches (in, then out for lunch, then in from lunch, then
leaving work) and simply jumbles them around randomly. I think someone
does it to force my manager to think in circles.
Good Luck.
Ron
Limit the time allowed between clock-in and clock-out to say 18 hours.
Employee clock-in at 6:00 AM and the next clock punch is at 5:59 AM on
the
next day, assume this is also a clock-in with no clock-out for the
previous
day.- Hide quoted text -

- Show quoted text -


madgunnercurz,
The reply is one way, Just don't forget to address the problem,
because it WILL happen. (Maybe it is a power outage at the end of the
day, so NO ONE can log out. - hmmmm)

Ron

Feb 13 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3356
by: cooldv | last post by:
i am running a website on Windows 2000 server with ASP 3 webpages and Access 2000 database. (with a hosting company) traffic is slow at this time but expect to grow. lately i have been reading about sql database and sql server, specially this article: http://www.aspfaq.com/show.asp?id=2195 will someone help me understand: 1. with *SQL Server*, do i keep my current Access 2000 database and ASP pages?
19
2091
by: nospammmer | last post by:
Hello group, I have a rather general but interesting inquiry that is related to PHP and I hope this is the appropriate place to post it. I'm looking for a way to improve dramatically the performance of my PHP application. The application is getting slow as it is taking more load. It is performing a very high number of queries to a database, and I believe that this is taking up most of the ressources.
6
7347
by: Marvin Libson | last post by:
Hi All: I am running DB2 UDB V7.2 with FP11. Platform is Windows 2000. I have created a java UDF and trigger. When I update my database I get the following error: SQL1224N A database agent could not be started to service a request, or was terminated as a result of a database system shutdown or a force command.
0
2282
by: Alex | last post by:
Hi all, I've been running a db2 V8.1 databasle to store my radius server accounting info for a *long* time and have never had any problems with it. Last week we had a power outage in our computer room and since then I've been having problems with one of the 3 db2 instances running on my server ( BTW 8.1 FP4). The databases on the other 2 instances work fine but as far as the radius server one is concerned whenever i try
5
3016
by: Bec | last post by:
I'm in desperate need of your help.. I need to build an access database and have NO idea how to do this.. Not even where to start.. It IS for school, and am not asking anyone to do my homework for me.. I am merely asking for help, perhaps pointers as to where to begin.. I've never used access before.. I'm rather cluey when it comes to
12
2797
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed both the iis and sql server in a single machine. Not too long ago, the machine had some hardware problems, and management has decided to purchase new servers, for both asp.net and sql server.
9
3848
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web site for a small club I belong to and one of the features I would like to include is the ability to allow users to upload image files. unfortunately the servers web root www folder only allows READ and EXECUTE permissions, which makes it...
18
9159
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft page "How to: Connect to Data in an Access Database"
12
3951
by: grace | last post by:
i am wondering why my database retrieval becomes too slow...we set up a new server (ubuntu, breezy badger) machine where we transferred all our files from the old server.. Our new server uses Asus p5pe-vm motherboard and an Intel Pentium D 3.0Ghz processor, compared to the old one where we uses asrock motherboard and AMD Duron. Both has the same version of mysql installed... To summarized, both machine has the same configuration except...
0
9716
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10604
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10101
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7643
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6870
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4314
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3837
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3005
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.