G
Guest
I am running a query where one of the fields I'm trying to print is called
EmpNum. When I run the query, the resulting field name is changed to
Expr1000. Can anyone tell me what is wrong with this query? I have looked
in the posts and am not finding any hits. Thanks for your help. Here is the
SQL of my query. The field in question is the very first one:
SELECT [e-BizProjectVendorTaskValidation2].EmpNum,
[e-BizProjectVendorTaskValidation2].Employee,
[e-BizProjectVendorTaskValidation2].PPEdate,
[e-BizProjectVendorTaskValidation2].HourType,
[e-BizProjectVendorTaskValidation2].NightHours,
[e-BizProjectVendorTaskValidation2].Revision,
[e-BizProjectVendorTaskValidation2].TotalHours,
[e-BizProjectVendorTaskValidation2].Project,
[e-BizProjectVendorTaskValidation2].Vendor,
[e-BizProjectVendorTaskValidation2].Function,
[e-BizProjectVendorTaskValidation2].Task,
[e-BizProjectVendorTaskValidation2].ProjectVendorTask,
[e-BizProjectVendorTaskValidation2].EmpProjVendTask,
[e-BizProjectVendorTaskValidation2.HourType] &
[e-BizProjectVendorTaskValidation2.Function] &
[e-BizProjectVendorTaskValidation2.Task] AS HrTpFunctTask,
HourTypeCodes.Category, [e-BizProjectVendorTaskValidation2].EmpNum
FROM ([e-BizProjectVendorTaskValidation2] LEFT JOIN
ValidProjectVendorTaskByScheduler ON
[e-BizProjectVendorTaskValidation2].EmpProjVendTask =
ValidProjectVendorTaskByScheduler.EmpProjtVendTask) LEFT JOIN HourTypeCodes
ON [e-BizProjectVendorTaskValidation2].HourType = HourTypeCodes.HourType
WHERE (((ValidProjectVendorTaskByScheduler.EmpProjtVendTask) Is Null)) OR
((([e-BizProjectVendorTaskValidation2].Function) Like "gl*") AND
((HourTypeCodes.Category)="work")) OR
((([e-BizProjectVendorTaskValidation2].Task) Like "gl*") AND
((HourTypeCodes.Category)="work"))
ORDER BY [e-BizProjectVendorTaskValidation2].Employee,
[e-BizProjectVendorTaskValidation2].PPEdate,
[e-BizProjectVendorTaskValidation2].HourType;
EmpNum. When I run the query, the resulting field name is changed to
Expr1000. Can anyone tell me what is wrong with this query? I have looked
in the posts and am not finding any hits. Thanks for your help. Here is the
SQL of my query. The field in question is the very first one:
SELECT [e-BizProjectVendorTaskValidation2].EmpNum,
[e-BizProjectVendorTaskValidation2].Employee,
[e-BizProjectVendorTaskValidation2].PPEdate,
[e-BizProjectVendorTaskValidation2].HourType,
[e-BizProjectVendorTaskValidation2].NightHours,
[e-BizProjectVendorTaskValidation2].Revision,
[e-BizProjectVendorTaskValidation2].TotalHours,
[e-BizProjectVendorTaskValidation2].Project,
[e-BizProjectVendorTaskValidation2].Vendor,
[e-BizProjectVendorTaskValidation2].Function,
[e-BizProjectVendorTaskValidation2].Task,
[e-BizProjectVendorTaskValidation2].ProjectVendorTask,
[e-BizProjectVendorTaskValidation2].EmpProjVendTask,
[e-BizProjectVendorTaskValidation2.HourType] &
[e-BizProjectVendorTaskValidation2.Function] &
[e-BizProjectVendorTaskValidation2.Task] AS HrTpFunctTask,
HourTypeCodes.Category, [e-BizProjectVendorTaskValidation2].EmpNum
FROM ([e-BizProjectVendorTaskValidation2] LEFT JOIN
ValidProjectVendorTaskByScheduler ON
[e-BizProjectVendorTaskValidation2].EmpProjVendTask =
ValidProjectVendorTaskByScheduler.EmpProjtVendTask) LEFT JOIN HourTypeCodes
ON [e-BizProjectVendorTaskValidation2].HourType = HourTypeCodes.HourType
WHERE (((ValidProjectVendorTaskByScheduler.EmpProjtVendTask) Is Null)) OR
((([e-BizProjectVendorTaskValidation2].Function) Like "gl*") AND
((HourTypeCodes.Category)="work")) OR
((([e-BizProjectVendorTaskValidation2].Task) Like "gl*") AND
((HourTypeCodes.Category)="work"))
ORDER BY [e-BizProjectVendorTaskValidation2].Employee,
[e-BizProjectVendorTaskValidation2].PPEdate,
[e-BizProjectVendorTaskValidation2].HourType;