Microsoft
Software
Hardware
Network
Question : Date conversion
I need to calc two fields for this pass thru query
The first field is working out just fine: SELECT Max([Date]) AS Last_Run_Date
The second field is the problem. I have to deduct 33 days from the Max date on a table.
What am I doing wrong? The query is running but I am getting an error in that column.
OBTW, the field named Date is text.
SELECT Max([Date]) AS Last_Run_Date, DateAdd("d",-33,Max([Date]
)) AS Begin_Date
FROM [Last Record Pulled];
Thanx,
Trudye
Answer : Date conversion
revised because of the format of the data
SELECT Max(DateSerial(Left([Date]
,4),Mid([d
ate],5,2),
Mid([date]
,7,2))) AS Last_Run_Date, DateAdd("d",-33,[Last_Run_
Date]) AS Begin_Date
FROM [Last Record Pulled];
Random Solutions
Access query using the "Like" command
How to use session variables in field names of asp.net report (.rdcl)
wcf service
How do I link multiple forms with Required Fields in Access that update one table
simple MS SQL count query
Accessing postgresql c#
Simple SQL Join Query Syntax Issue
How to import contact list from outlook expres into Outlook 2003
override standard SQLEXEC function vfp
Why is the system popping up after reboot with .NET Framework 2.0 required after Vista SP 64 to Win 7 64 upgrade?