Rick said:
Here it is:
SELECT DISTINCT Employees.EmployeeID, [Employees].
[lastname] & ", " & [Employees].[firstname] & " " &
[Employees].[middleintial] AS Name, Employees.Active,
Employees.Company, Employees.Department AS D,
Time.WeekEndingDate, Employees.SocialSecurityNum, Time.Job
FROM Employees INNER JOIN [Time] ON Employees.EmployeeID =
Time.EmployeeID
WHERE (((Employees.Active)=Yes) AND ((Employees.Department)
="1" Or (Employees.Department)="2" Or
(Employees.Department)="7" Or (Employees.Department)="8")
AND ((Time.WeekEndingDate)=[Forms]!
[ReportPaycheckDistributionSelection]![Q_DATE]));
-----Original Message-----
Rick,
Could you please open your query in SQL View and copy and paste the code
here?
Sincerely,
Chris
SELECT DISTINCT
Employees.EmployeeID
,[Employees].[lastname] & ", " &
[Employees].[firstname] & " " &
[Employees].[middleintial] AS Name
,Employees.Active
,Employees.Company
,Employees.Department AS D
,Time.WeekEndingDate
,Employees.SocialSecurityNum
,Time.Job
FROM Employees
INNER JOIN
[Time]
ON Employees.EmployeeID = Time.EmployeeID
WHERE (((Employees.Active) = Yes)
AND ((Employees.Department) = "1"
OR (Employees.Department) = "2"
OR (Employees.Department) = "7"
OR (Employees.Department) = "8")
AND ((Time.WeekEndingDate) =
[Forms]![ReportPaycheckDistributionSelection]![Q_DATE]));
Hmmm.
Without being able to examine your Tables or Form in detail, it's very
hard to tell for sure.
Off the top of my head, I don't know.
However, a little googling produces:
http://support.microsoft.com/support/kb/articles/q121/5/12.asp
ACC: "Couldn't Insert or Paste; Data Too Long for Field" Error Message
CAUSE
This error occurs if one of the fields in the record has a default value
that exceeds that field's FieldSize property setting.
RESOLUTION
Increase the field's FieldSize property setting to be equal to or larger
than the field's default value. Or, change the field's default value so that
it does not exceed the field's FieldSize property setting.
It does note that it applies to Access 97 and earlier, but I don't know
which version you're using.
Sincerely,
Chris O.