[AccessD] Date Range Query

Elam, Debbie DElam at jenkens.com
Tue Apr 12 12:24:05 CDT 2005


I am trying to make a very simple query, but I am having an odd problem.

I want to make a date range selectable so I have "between [Start Date] and
[End Date]" as the criteria under a date.  Strangely this always returns
November and December of last year, regardless of the date entered.  If I
hard code the date, I get the correct records.

Background info that may be pertinent:
I am using Access XP with SQL 2000 backend just using linked tables.  The
date is coming through as text, but I have used Cdate([StartDate]) to help
make the query work.

Debbie
- JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject
to the Attorney-Client Privilege, (2) an attorney work product, or (3)
strictly confidential. If you are not the intended recipient of this
message, you may not disclose, print, copy or disseminate this information.
If you have received this in error, please reply and notify the sender
(only) and delete the message. Unauthorized interception of this e-mail is a
violation of federal criminal law. 
This communication does not reflect an intention by the sender or the
sender's client or principal to conduct a transaction or make any agreement
by electronic means.  Nothing contained in this message or in any attachment
shall satisfy the requirements for a writing, and nothing contained herein
shall constitute a contract or electronic signature under the Electronic
Signatures in Global and National Commerce Act, any version of the Uniform
Electronic Transactions Act or any other statute governing electronic
transactions.



More information about the AccessD mailing list