I am trying to select records from a particular year, the fromat of the field is dd/mm/yyyy. I would like to select records with a date field >=2002. ie. only records enetered from this year onwards, does anyone know how to do this? I have tried:
WHERE datediff('y',2002,ConsultDate)<=0;
WHERE datediff('y',01/01/2002,ConsultDate)<=0;
WHERE ConsultDate>=01/01/2002;
but alll of these do not work does anyone have an idea? thanks in advance
WHERE datediff('y',2002,ConsultDate)<=0;
WHERE datediff('y',01/01/2002,ConsultDate)<=0;
WHERE ConsultDate>=01/01/2002;
but alll of these do not work does anyone have an idea? thanks in advance