This question concerns using Access 97, with linked tables from SQL Server 7.
The key fields are as follows:
AssignDate = Date\Time
ActionDateDue = Date\Time
I have a query (unfortunately not written by me...) which doesn't seem to work, in its normal form below:
When the query runs, I get a message saying
, and every row has #Name? in every field.
I started messing around with the criteria, to try to isolate the reason for the error, and I found that by removing the
criteria (leaving
, I could make the query run properly.
This is really screwing my head, because I don't understand why
is making such a difference!
Any help would be gratefully appreciated!
The key fields are as follows:
AssignDate = Date\Time
ActionDateDue = Date\Time
I have a query (unfortunately not written by me...) which doesn't seem to work, in its normal form below:
Code:
SELECT Call.Call_Num, Call.Priority, Call.OpenDate, Call.AssignTo, Call.ActionEmailAddress, Call.AssignDate, Call.ActionDateDue, DateAdd("n",(DateDiff("n",[AssignDate],[ActionDateDue])*1.5),[AssignDate]) AS 150Percent, Call.ActionFlag3
FROM Call
WHERE (((DateAdd("n",(DateDiff("n",[AssignDate],[ActionDateDue])*1.5),[AssignDate]))<Now()) AND ((Call.ActionFlag3)=False) AND ((Call.IsClosed)=False));
When the query runs, I get a message saying
Code:
Data Type Mismatch in Criteria Expression
I started messing around with the criteria, to try to isolate the reason for the error, and I found that by removing the
Code:
Now()
Code:
WHERE ((Call.ActionFlag3)=False) AND ((Call.IsClosed)=False);
This is really screwing my head, because I don't understand why
Code:
Now()
Any help would be gratefully appreciated!