I have a need to compute the nearest Quarterly Date (forward) and the brain is not at 100% today I guess.
I thought this would work, but when I try to update - I get an error.
Perhaps there is a DateAdd() that I could use?
Thanks in Advance,
Steve Medvid
IT Consultant & Web Master
Chester County, PA Residents
Please Show Your Support...
I thought this would work, but when I try to update - I get an error.
Code:
UPDATE tblData SET tblData.CDate_Qtr = IIf(Month([cdate])<=3,'3',IIf(Month([cdate])>3 And Month([cdate])<=6,'6',IIf(Month([cdate])>6 And Month([cdate])<=9,'9',IIf(Month([cdate])>9 And Month([cdate])<=12,'12',Month([cdate])))))+'/01/'+Year([cdate]);
' CDate_Qtr is a date/time field as is cdate.
Perhaps there is a DateAdd() that I could use?
Thanks in Advance,
Steve Medvid
IT Consultant & Web Master
Chester County, PA Residents
Please Show Your Support...