Actually, no. I've tried that several times and I get the Data Type Mismatch error.
What I'm actually trying to do is this. In the code, I'm pulling out two dates from another table and putting those into their own fields in a cursor and from there trying to subtract how many days between the two dates. Here's the code I have.
SELECT Closedate, Req_Recd, Req_Recd - Closedate / 86400 as TimeToClose ;
FROM Phonelog ;
WHERE Phonelog.ProdLine !="Commercial" ;
INTO CURSOR csrCompLen
I assumed I could just do the math in the cursor, but it isn't getting past the calculation. I've gotten Data type mismatch and also the wrong operand error as well. I've enclosed them in Parens too. Any ideas?