G
Gaetanm via AccessMonster.com
I have received much help from this Group and I hope someone can
help me with this:
My form has two combo box’s [cboEmployeeId] [cboJobId]the purpose of the form
is
to pull the emp id and job Id click a button the Now() function executes into
a text field and Click another button to record into my Clock_table.
I have another form that is about the same but enters a stopdate
In my Clock_table I would show [EmployeeId][JobId] [Startime] StopTime]
And I do my time calculation queries from here.
All this works but with this wrinkle.
An employee may punch in and out 20 times during the day going job to job
Including some he has worked on during the day.
I need to pull up the employeeID that is starting a job that be one he has
worked on before or not making Sure he doe’s not have another job open.
In other words he can’t clock in until he has clocked out.
Below is the code for checking on STOP time. This sees if the
Stopdate is null if so the combo box on the STOP time form pulls
Up only the EmployeeID that have jobs open.
I would like to bring up in the START time form Employees that
Do not have jobs open
Here is my code for jobs Not completed
SELECT Employees.EmployeeID, Employees.FirstName, Employees.MiddleName,
Employees.LastName, [Job Sheet].JobID, [Job Sheet].Notes, Clock_Table.
StartDate, Clock_Table.StopDate
FROM Employees INNER JOIN ([Job Sheet] INNER JOIN Clock_Table ON [Job Sheet].
JobID = Clock_Table.JobID) ON Employees.EmployeeID = Clock_Table.EmployeeID
WHERE (((Clock_Table.StartDate) Is Not Null) AND ((Clock_Table.StopDate) Is
Null));
Thanks
Gaetanm
help me with this:
My form has two combo box’s [cboEmployeeId] [cboJobId]the purpose of the form
is
to pull the emp id and job Id click a button the Now() function executes into
a text field and Click another button to record into my Clock_table.
I have another form that is about the same but enters a stopdate
In my Clock_table I would show [EmployeeId][JobId] [Startime] StopTime]
And I do my time calculation queries from here.
All this works but with this wrinkle.
An employee may punch in and out 20 times during the day going job to job
Including some he has worked on during the day.
I need to pull up the employeeID that is starting a job that be one he has
worked on before or not making Sure he doe’s not have another job open.
In other words he can’t clock in until he has clocked out.
Below is the code for checking on STOP time. This sees if the
Stopdate is null if so the combo box on the STOP time form pulls
Up only the EmployeeID that have jobs open.
I would like to bring up in the START time form Employees that
Do not have jobs open
Here is my code for jobs Not completed
SELECT Employees.EmployeeID, Employees.FirstName, Employees.MiddleName,
Employees.LastName, [Job Sheet].JobID, [Job Sheet].Notes, Clock_Table.
StartDate, Clock_Table.StopDate
FROM Employees INNER JOIN ([Job Sheet] INNER JOIN Clock_Table ON [Job Sheet].
JobID = Clock_Table.JobID) ON Employees.EmployeeID = Clock_Table.EmployeeID
WHERE (((Clock_Table.StartDate) Is Not Null) AND ((Clock_Table.StopDate) Is
Null));
Thanks
Gaetanm