Advertisement

05.02.2008 at 08:24AM PDT, ID: 23371909
[x]
Attachment Details

Date query not running as expected

Asked by dsr79 in Microsoft Access Database, SQL Query Syntax

Tags: , ,

Hi all, I have a table that has among other fields the following two fields:

1.)  TimeCreated  - this is a date/time field  - sample data "12/4/2006 9:10:43 AM"
2.)  ListID - this is a unique customer identifier - sample data = "AB1234"

I am trying to run the following query

SELECT Customer.ListID, Format(Customer.TimeCreated,"mm/dd/yyyy")
FROM Customer
where Format(Customer.TimeCreated,"mm/dd/yyyy")>"01/01/2006" ;

The idea of the query is to get a list of all the customers who were entered into the system after 1/1/2006.  The query runs but the results contain all the records, even records created prior to that date.  What is wrong with the query above?  Any help would be appreciated.

Thanks,
Ram.Start Free Trial
[+][-]05.02.2008 at 08:25AM PDT, ID: 21487418

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.02.2008 at 08:26AM PDT, ID: 21487428

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.02.2008 at 08:30AM PDT, ID: 21487466

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.02.2008 at 08:35AM PDT, ID: 21487498

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.02.2008 at 08:36AM PDT, ID: 21487510

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.02.2008 at 08:38AM PDT, ID: 21487522

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.02.2008 at 08:38AM PDT, ID: 21487524

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.02.2008 at 08:39AM PDT, ID: 21487529

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.02.2008 at 08:39AM PDT, ID: 21487530

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, SQL Query Syntax
Tags: Microsoft, Access, 2000
Sign Up Now!
Solution Provided By: capricorn1
Participating Experts: 5
Solution Grade: A
 
 
[+][-]05.02.2008 at 08:40AM PDT, ID: 21487536

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628