C
Clan McCreery
Hello,
I have a time clock program where [txtTime] is the
employee's scheduled time to start work, and
[txtClockTime] is the actual time they "punch in"...they
click a button [butCurrentTime] which enters the
computer's time into the text box.
If an employee clocks in early, I want the time to default
to the time in [txtTime], if they are on time or late, I
want the actual time. So I wrote code on the "on click"
command of [butCurrentTime] which says:
If Time() is < [txtTime] then
[txtClockTime] = [txtTime] else
....(code for inserting time)
When I click butCurrentTime I only get the current time,
it doesn't read my if then else...can someone please help
me with this? Its the last component of a project I
really want to wrap up!!
Thanks!
Clan McCreery
I have a time clock program where [txtTime] is the
employee's scheduled time to start work, and
[txtClockTime] is the actual time they "punch in"...they
click a button [butCurrentTime] which enters the
computer's time into the text box.
If an employee clocks in early, I want the time to default
to the time in [txtTime], if they are on time or late, I
want the actual time. So I wrote code on the "on click"
command of [butCurrentTime] which says:
If Time() is < [txtTime] then
[txtClockTime] = [txtTime] else
....(code for inserting time)
When I click butCurrentTime I only get the current time,
it doesn't read my if then else...can someone please help
me with this? Its the last component of a project I
really want to wrap up!!
Thanks!
Clan McCreery