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
Cannot Create or Extend Web Application in Central Administrator. Receive Error: Access Denied
Silverlight Runtime not loading XAP from Integrated Authentication
Receiving error when submitting data to SQL Server through asp.net vb
Why does Update bring a lot of Null in the traget table ?
WSUS Running
Scope_Identity in SELECT statement with a WHERE clause
Recalc field on an open form when close a second form.
Patient Days Across Multiple Months
Exchange Service Pack 2 Removal
Importing XML into MS Access 2003 or higher and keep Parent Child relationships in the tables