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
New Exchange 2007 installation after exchange server 2000 fail ?
How do you add a network share to DFS replication?
Logitech Wingman Force Joystick and Wheel not working with Vista 64-bit...help!!!
Form_Current or Form_Open
Set number of Clients in WSUS ?
Query to pull no service between certain time frame
Need to migrate from SBS 2008 to Windows 2008 and Exchange 2010
Convert DateTime to Float or another numeric value
Unhandled exception when adding edit box
SQL SERVER STORED PROCEDURES ROUNDING INTEGERS