Hello,
I have a query that works just fine but when I put it a where condition, a blank results screen appears. I have tried putting in the condition in the subquery in the from clause and also in the main query, but nothing works. As soon as I take out the where condition, everything works, but I need it in there- so I need to figure out why this clause is killing the whole query.
The query is as follows:
SELECT LastName, FirstName, Role, InvoiceNum, ServiceSubcat, FTE, FTEAllocatAmountProduct, FMS_PayReq.[Hdr-Doc ID], FTEMonthStart
FROM [Select TEMPS_3_true_and_allocation_salary_perInvEmployee.LAstName, TEMPS_3_true_and_allocation_salary_perInvEmployee.FirstName, TEMPS_3_true_and_allocation_salary_perInvEmployee.Role, TEMPS_3_true_and_allocation_salary_perInvEmployee.InvoiceNum, EmployeeTask_FTE.ServiceSubcat,
FTEMonthStart,
EmployeeTask_FTE.FTE, FTE*AllocatMonthSalaryperEmployee AS FTEAllocatAmountProduct
FROM
TEMPS_3_true_and_allocation_salary_perInvEmployee INNER JOIN EmployeeTask_FTE ON (TEMPS_3_true_and_allocation_salary_perInvEmployee.LAstName = EmployeeTask_FTE.LastName) AND (TEMPS_3_true_and_allocation_salary_perInvEmployee.FirstName = EmployeeTask_FTE.FirstName) AND (TEMPS_3_true_and_allocation_salary_perInvEmployee.WorkTimeType = EmployeeTask_FTE.WorkTimeType)
]. AS MainSub INNER JOIN FMS_PayReq ON MainSub.InvoiceNum= FMS_PayReq.[Comm-Invoice No]
WHERE FTEMonthStart between [start date] and [start date];
The Field FTEMonthStart is a date field in the table EmployeeTask_FTE. I checked- the format of the field in the table is correct.
Any thoughts on where this is going wrong?
Thank you so much!
I have a query that works just fine but when I put it a where condition, a blank results screen appears. I have tried putting in the condition in the subquery in the from clause and also in the main query, but nothing works. As soon as I take out the where condition, everything works, but I need it in there- so I need to figure out why this clause is killing the whole query.
The query is as follows:
SELECT LastName, FirstName, Role, InvoiceNum, ServiceSubcat, FTE, FTEAllocatAmountProduct, FMS_PayReq.[Hdr-Doc ID], FTEMonthStart
FROM [Select TEMPS_3_true_and_allocation_salary_perInvEmployee.LAstName, TEMPS_3_true_and_allocation_salary_perInvEmployee.FirstName, TEMPS_3_true_and_allocation_salary_perInvEmployee.Role, TEMPS_3_true_and_allocation_salary_perInvEmployee.InvoiceNum, EmployeeTask_FTE.ServiceSubcat,
FTEMonthStart,
EmployeeTask_FTE.FTE, FTE*AllocatMonthSalaryperEmployee AS FTEAllocatAmountProduct
FROM
TEMPS_3_true_and_allocation_salary_perInvEmployee INNER JOIN EmployeeTask_FTE ON (TEMPS_3_true_and_allocation_salary_perInvEmployee.LAstName = EmployeeTask_FTE.LastName) AND (TEMPS_3_true_and_allocation_salary_perInvEmployee.FirstName = EmployeeTask_FTE.FirstName) AND (TEMPS_3_true_and_allocation_salary_perInvEmployee.WorkTimeType = EmployeeTask_FTE.WorkTimeType)
]. AS MainSub INNER JOIN FMS_PayReq ON MainSub.InvoiceNum= FMS_PayReq.[Comm-Invoice No]
WHERE FTEMonthStart between [start date] and [start date];
The Field FTEMonthStart is a date field in the table EmployeeTask_FTE. I checked- the format of the field in the table is correct.
Any thoughts on where this is going wrong?
Thank you so much!