G
Gaetanm via AccessMonster.com
Please help!
This is a Query and I'm trying to get information about a employee
The following code works then there is the BUT!
SELECT Clock_Table.EmployeeID, Clock_Table.StartDate, Clock_Table.StopDate,
DateDiff("n",[Startdate],[Stopdate])\60 & Format(DateDiff("n",[Startdate],
[Stopdate]) Mod 60,"\:00") AS ToTalTime, DateDiff("n",[Startdate],[Stopdate])
AS TotalHoursMinutes, Round([TotalHoursMinutes]/60,2) AS HundredTime
FROM Clock_Table;
When I Add the WHERE statement and move the ';' I get
"DATA TYPE MISMATCH IN CRITERIA EXPRESSION"
Here is my added WHERE statement:
WHERE EmployeeID = '1';
I even used WHERE Clock_Table.EmployeeID = '1';
Can you please help
Gaetanm
This is a Query and I'm trying to get information about a employee
The following code works then there is the BUT!
SELECT Clock_Table.EmployeeID, Clock_Table.StartDate, Clock_Table.StopDate,
DateDiff("n",[Startdate],[Stopdate])\60 & Format(DateDiff("n",[Startdate],
[Stopdate]) Mod 60,"\:00") AS ToTalTime, DateDiff("n",[Startdate],[Stopdate])
AS TotalHoursMinutes, Round([TotalHoursMinutes]/60,2) AS HundredTime
FROM Clock_Table;
When I Add the WHERE statement and move the ';' I get
"DATA TYPE MISMATCH IN CRITERIA EXPRESSION"
Here is my added WHERE statement:
WHERE EmployeeID = '1';
I even used WHERE Clock_Table.EmployeeID = '1';
Can you please help
Gaetanm