G
Gaetanm via AccessMonster.com
In a combo box i need to pull down the employeeId but the combo box
shows me all the transactions on each employee verses one record.
I would like to show each employeeid that has a startdate and stopdate
that is "not null" and not show the employeeid that stopdate is null.
this is a job time clock database. the idea is you start a job by punching in
and you stop working on the job when you punch out. The job may not be
finished but your clock time is finished for that job.
I want to make sure that an employeeId is not available by making sure the
employeeid does not have a job already started and trying to start another
one.
Here is where I am:
SELECT DISTINCT Employees.EmployeeID, Employees.FirstName, Employees.
MiddleName, Employees.LastName, Clock_Table.StartDate, Clock_Table.StopDate,
Clock_Table.TotalHoursMinutes
FROM Employees INNER JOIN Clock_Table ON Employees.EmployeeID = Clock_Table.
EmployeeID
GROUP BY Employees.EmployeeID, Employees.FirstName, Employees.MiddleName,
Employees.LastName, Clock_Table.StartDate, Clock_Table.StopDate, Clock_Table.
TotalHoursMinutes
HAVING (((Clock_Table.StartDate)>Date()-Weekday(Date()+1)));
Any assistance would greatly be appreciated
Gaetanm
shows me all the transactions on each employee verses one record.
I would like to show each employeeid that has a startdate and stopdate
that is "not null" and not show the employeeid that stopdate is null.
this is a job time clock database. the idea is you start a job by punching in
and you stop working on the job when you punch out. The job may not be
finished but your clock time is finished for that job.
I want to make sure that an employeeId is not available by making sure the
employeeid does not have a job already started and trying to start another
one.
Here is where I am:
SELECT DISTINCT Employees.EmployeeID, Employees.FirstName, Employees.
MiddleName, Employees.LastName, Clock_Table.StartDate, Clock_Table.StopDate,
Clock_Table.TotalHoursMinutes
FROM Employees INNER JOIN Clock_Table ON Employees.EmployeeID = Clock_Table.
EmployeeID
GROUP BY Employees.EmployeeID, Employees.FirstName, Employees.MiddleName,
Employees.LastName, Clock_Table.StartDate, Clock_Table.StopDate, Clock_Table.
TotalHoursMinutes
HAVING (((Clock_Table.StartDate)>Date()-Weekday(Date()+1)));
Any assistance would greatly be appreciated
Gaetanm