Hi,
I'm having difficulties with the following line of code which keeps throwing up the error that:
'' is not a recognized DatePart option
The offending line is as folows:
AND t.date between '01/01/' & DatePart('yy', getdate()) AND getdate()
basically I'm trying to say where the date is the 01/01/2002 and the currrent date, and next year it'll be 01/01/2003 and so forth. any help would b appreciated.
I'm having difficulties with the following line of code which keeps throwing up the error that:
'' is not a recognized DatePart option
The offending line is as folows:
AND t.date between '01/01/' & DatePart('yy', getdate()) AND getdate()
basically I'm trying to say where the date is the 01/01/2002 and the currrent date, and next year it'll be 01/01/2003 and so forth. any help would b appreciated.