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
SQL Server BIT field true and false
Disable "Printed Date" in Outlook when printing
Any way to move a hyper v guest from one hyperv host to another?
Unable to install nVidia Display driver
Transpose Columns Names with Data
Lock down website usine web.config file
Access 2007 and PDF
SharePoint (WSS 3) access via UNC path
DoCmd.OutputTo - runtime error 30016 the field 'id' is read only
How to automate Access Report Save process (in multiple formats)