I'm writing a query to pick up all records created yesterday. The records are date and time stamped thus:- dd/mm/yyyy hh:mm:ss
Normally if I were trying to retrieve records on a date only stamped field I'd use 'date()-1' in the criteria field to pick up any records created yesterday but when I try this on the dd/mm/yyyy hh:mm:ss field I get no records returned. In order to try and get round this problem I resorted to using '>=[Enter Date]' and I manually enter yesterdays date but I want to understand how to retrieve these records. I must be missing something easy so would be grateful for any help.
Normally if I were trying to retrieve records on a date only stamped field I'd use 'date()-1' in the criteria field to pick up any records created yesterday but when I try this on the dd/mm/yyyy hh:mm:ss field I get no records returned. In order to try and get round this problem I resorted to using '>=[Enter Date]' and I manually enter yesterdays date but I want to understand how to retrieve these records. I must be missing something easy so would be grateful for any help.