We do labor tracking on the items we manufacture.
I have a table called Actual:
Date Job# Start Time Badge# Stat_Flag
12/16/04 24629 09:07 1060 Started
12/16/04 24658 06:42 1092 Paused
12/16/04 24667 10:28 1114 Finished
12/16/04 24654 14:13 1092 Started
Another Table Called Production_Employees
Employee Badge#
John Ramirez 1060
Stacy Keys 1092
Joe Franks 1114
Eren Phillips 1129
I need to write a report that shows who is NOT started on any job on the current date.
So with the above example I would be looking for:
Employee
Joe Franks
Eren Phillips
The way I have tried to accomplish this is by linking the two tables by Badge number with Production_Employees not equal to Actual. In the selection expert I have:
{@dateconversion}=currentdate and
{Actual.STAT_FLAG} = "STARTED"
//@dateconversion is converting the date field which is a CHAR in the SQL table, to a date.
IN the detail of the report all I have is Employee.
WHen I run the report it is not showing me what I want to see, it shows me everyone in my Production_Employee table duplicated over and over many times. I added job# to my report to get an idea what was happening and it seems that it is showing me every order that was clocked into on the currentdate but had a status that was paused or finished. Then it is duplicating the order for every person that did not work on it.
Using the above example this is what I am seeing:
Employee Job#
John Ramirez 24658
Joe Franks 24658
Eren Phillips 24658
John Ramirez 24667
Stacy Keys 24667
Eren Phillips 24667
I am using Crystal Reports 8.5
Any suggestions on how I can get this report accomplished?
I have a table called Actual:
Date Job# Start Time Badge# Stat_Flag
12/16/04 24629 09:07 1060 Started
12/16/04 24658 06:42 1092 Paused
12/16/04 24667 10:28 1114 Finished
12/16/04 24654 14:13 1092 Started
Another Table Called Production_Employees
Employee Badge#
John Ramirez 1060
Stacy Keys 1092
Joe Franks 1114
Eren Phillips 1129
I need to write a report that shows who is NOT started on any job on the current date.
So with the above example I would be looking for:
Employee
Joe Franks
Eren Phillips
The way I have tried to accomplish this is by linking the two tables by Badge number with Production_Employees not equal to Actual. In the selection expert I have:
{@dateconversion}=currentdate and
{Actual.STAT_FLAG} = "STARTED"
//@dateconversion is converting the date field which is a CHAR in the SQL table, to a date.
IN the detail of the report all I have is Employee.
WHen I run the report it is not showing me what I want to see, it shows me everyone in my Production_Employee table duplicated over and over many times. I added job# to my report to get an idea what was happening and it seems that it is showing me every order that was clocked into on the currentdate but had a status that was paused or finished. Then it is duplicating the order for every person that did not work on it.
Using the above example this is what I am seeing:
Employee Job#
John Ramirez 24658
Joe Franks 24658
Eren Phillips 24658
John Ramirez 24667
Stacy Keys 24667
Eren Phillips 24667
I am using Crystal Reports 8.5
Any suggestions on how I can get this report accomplished?