C
Clancy
I am trying to run an update query and I keep getting the "Type Mismatch in
expression" error message. I have gone through and double checked that all of
the fields in both tables have the same data type. The only thing I can think
of is that [Activity Log].[Activity #] is a text box that contains either
text or a numeric value. If that is the problem, I'm not sure how to correct
it. The query is as follows:
UPDATE Passdown INNER JOIN [Activity Log] ON (Passdown.[B-I Priority] =
[Activity Log].[I Priority]) AND (Passdown.[B-P Priority] = [Activity Log].[P
Priority]) AND (Passdown.[Date B] = [Activity Log].[Date B]) AND
(Passdown.[Activity #] = [Activity Log].[Activity #])
SET Passdown.[Activity #] = [Activity Log].[Activity #], [Date B] =
[Activity Log].[Date B], Passdown.[B-P Priority] = [Activity Log].[P
Priority], Passdown.[B-I Priority] = [Activity Log].[I Priority]
WHERE (Passdown.[V Name]=[Activity Log].[Vl]) AND (Passdown.[Primary
VIN]=[Activity Log].[I Number]) AND ([Activity Log].[P Priority]<>"MISSED")
AND ([Activity Log].[Date B]>DateAdd("d",-1,Passdown.[Date A])) And
([Activity Log].[Date B]<DateAdd("d",6,Passdown.[Date A]));
expression" error message. I have gone through and double checked that all of
the fields in both tables have the same data type. The only thing I can think
of is that [Activity Log].[Activity #] is a text box that contains either
text or a numeric value. If that is the problem, I'm not sure how to correct
it. The query is as follows:
UPDATE Passdown INNER JOIN [Activity Log] ON (Passdown.[B-I Priority] =
[Activity Log].[I Priority]) AND (Passdown.[B-P Priority] = [Activity Log].[P
Priority]) AND (Passdown.[Date B] = [Activity Log].[Date B]) AND
(Passdown.[Activity #] = [Activity Log].[Activity #])
SET Passdown.[Activity #] = [Activity Log].[Activity #], [Date B] =
[Activity Log].[Date B], Passdown.[B-P Priority] = [Activity Log].[P
Priority], Passdown.[B-I Priority] = [Activity Log].[I Priority]
WHERE (Passdown.[V Name]=[Activity Log].[Vl]) AND (Passdown.[Primary
VIN]=[Activity Log].[I Number]) AND ([Activity Log].[P Priority]<>"MISSED")
AND ([Activity Log].[Date B]>DateAdd("d",-1,Passdown.[Date A])) And
([Activity Log].[Date B]<DateAdd("d",6,Passdown.[Date A]));