We help IT Professionals succeed at work.
Get Started

Select yesterday only from CDATE values

Last Modified: 2013-11-28
Hello Experts,

I have an access database that I have inherited and looking for a little help.  I have a simple select statement where I need to pull only the records from yesterday.  The only problem is that the only date field that should be a date / time field is text....  So what I tried in the select in a new column was cdate(datefield)..Which appears to be working.   My hopes were to then put in the criteria Now()-1  But this returns 0 records, even though there are records from yesterday I tried the same scenario with the same results using the date() -1 in the criteria.  Is it possible to do this type of select with a CDATE field, or is there a better way to do this.
source datefield format is dd-mm-yyyy (01-10-2008) October 1, 2008
Watch Question
Senior Applications Analyst
This problem has been solved!
Unlock 1 Answer and 17 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE